9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-04 15:41:36 +00:00

Fixed spelunking

This commit is contained in:
Auxilor
2021-08-28 18:30:13 +01:00
parent 0deff4dd8b
commit 3aa615a00c

View File

@@ -78,6 +78,7 @@ class EffectSpelunking : Effect(
val dropEvent = BlockDropItemEvent(block, block.state, player, event.items.map { item ->
val stack = item.itemStack
stack.amount = stack.amount * amount
if (stack.type == Material.AIR) return@map null
item.itemStack = stack
if(stack.type == Material.AIR) null else item
}.filter { Objects.nonNull(it) }.toMutableList())