mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-12-22 16:18:24 +01:00
Get inventory item using Bukkit method. This way, if there's a problem with invalid indices it's a bukkit issue.
This commit is contained in:
parent
f8a976d339
commit
e5eba603ec
@ -188,7 +188,7 @@ public class PlayerListener extends ModifyworldListener {
|
||||
return;
|
||||
}
|
||||
|
||||
ItemStack take = event.getInventory().getItem(event.getSlot());
|
||||
ItemStack take = event.getCurrentItem();
|
||||
|
||||
String action;
|
||||
ItemStack item;
|
||||
|
Loading…
Reference in New Issue
Block a user