mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-11-25 12:06:09 +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