Fixed captive slot changes PR

This commit is contained in:
Auxilor
2022-11-17 15:10:05 +00:00
parent f05c5f3cd6
commit bcb7401c74
8 changed files with 31 additions and 64 deletions

View File

@@ -95,7 +95,7 @@ class GUIListener(private val plugin: EcoPlugin) : Listener {
val slot = menu.getSlot(row, column, player)
if (!slot.isCaptive(player, menu) || !slot.isCaptiveForItem(player, menu, event.currentItem)) {
if (!slot.isCaptive(player, menu, event.currentItem)) {
event.isCancelled = true
}
}