Version 1.5.4:

* Fixed IgnoreHeldItems again
This commit is contained in:
PretzelJohn 2022-04-23 20:53:52 -04:00
parent a3995b6adb
commit 030974f065

View File

@ -46,7 +46,6 @@ public class PlayerListener implements Listener {
Material heldItemType = player.getInventory().getItem(event.getHand()).getType();
for(String ignoredType : instance.getCfg().getStringList("IgnoreHeldItems")) {
if(heldItemType.equals(Material.matchMaterial(ignoredType))) {
event.setCancelled(true);
return;
}
}