mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2025-01-06 18:47:48 +01:00
Fix minions being taken when they shouldn't be taken
This commit is contained in:
parent
f623720ea3
commit
190c498e87
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user