mirror of
https://github.com/PretzelJohn/VillagerTradeLimiter.git
synced 2024-12-05 00:23:29 +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();
|
Material heldItemType = player.getInventory().getItem(event.getHand()).getType();
|
||||||
for(String ignoredType : instance.getCfg().getStringList("IgnoreHeldItems")) {
|
for(String ignoredType : instance.getCfg().getStringList("IgnoreHeldItems")) {
|
||||||
if(heldItemType.equals(Material.matchMaterial(ignoredType))) {
|
if(heldItemType.equals(Material.matchMaterial(ignoredType))) {
|
||||||
event.setCancelled(true);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user