9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-01 05:16:28 +00:00

Fixed spelunking overflow

This commit is contained in:
Auxilor
2021-08-31 23:38:39 +01:00
parent bec7b883c7
commit f4f91f8d65

View File

@@ -74,14 +74,14 @@ class EffectSpelunking : Effect(
it
})
noRepeat.add(dropEvent)
Bukkit.getPluginManager().callEvent(dropEvent)
if (dropEvent.items.isEmpty() || dropEvent.isCancelled) {
return
}
noRepeat.add(dropEvent)
DropQueue(player)
.addItems(*dropEvent.items.map { it.itemStack })
.push()