mirror of
https://github.com/Auxilor/EcoSkills.git
synced 2026-01-04 15:41:36 +00:00
Fixed spelunking
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user