Fix minions being taken when they shouldn't be taken

This commit is contained in:
AverageGithub 2024-03-22 11:22:25 +01:00
parent f623720ea3
commit 190c498e87

View File

@ -80,7 +80,6 @@ class MinionPlaceListener : Listener {
meta = item.itemMeta!! meta = item.itemMeta!!
meta.persistentDataContainer.remove(Keys.PLACED) meta.persistentDataContainer.remove(Keys.PLACED)
item.itemMeta = meta item.itemMeta = meta
item.amount = item.amount.minus(1)
} }
return@submit return@submit
} }
@ -92,7 +91,6 @@ class MinionPlaceListener : Listener {
meta = item.itemMeta!! meta = item.itemMeta!!
meta.persistentDataContainer.remove(Keys.PLACED) meta.persistentDataContainer.remove(Keys.PLACED)
item.itemMeta = meta item.itemMeta = meta
item.amount = item.amount.minus(1)
} }
return@submit return@submit
} }