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

Fixed more bugs

This commit is contained in:
Auxilor
2021-08-26 16:22:15 +01:00
parent 0298b1b1f4
commit bcd4e11933

View File

@@ -66,7 +66,7 @@ class EffectSpelunking : Effect(
val dropEvent = BlockDropItemEvent(block, block.state, player, event.items)
Bukkit.getPluginManager().callEvent(dropEvent)
if (dropEvent.items.isEmpty()) {
if (dropEvent.items.isEmpty() || dropEvent.isCancelled) {
return
}