mirror of
https://github.com/PretzelJohn/VillagerTradeLimiter.git
synced 2024-12-04 16:13:31 +01:00
Version 1.5.4:
* Fixed IgnoreHeldItems again
This commit is contained in:
parent
a3995b6adb
commit
030974f065
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user