Refactoring for naming, updated to 6.47.0

This commit is contained in:
Auxilor
2022-11-23 21:56:07 +00:00
parent eccb146852
commit 823ef6477b
10 changed files with 33 additions and 32 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.canCaptivateItem(player, menu, event.currentItem)) {
if (!slot.isCaptive(player, menu) && slot.isAllowedCaptive(player, menu, event.currentItem)) {
event.isCancelled = true
}
}