Fixed error with player-eat-check

This commit is contained in:
DarkLiKally 2011-03-01 19:58:54 +01:00
parent 916ed2652e
commit 3e9c7aa74b

View File

@ -140,10 +140,7 @@ public void onPlayerItem(PlayerItemEvent event) {
WorldGuardConfiguration cfg = plugin.getWgConfiguration();
WorldGuardWorldConfiguration wcfg = cfg.getWorldConfig(player.getWorld().getName());
Material type = block.getType();
if (wcfg.useRegions && type != Material.LEVER && type != Material.STONE_BUTTON && type != Material.DIODE
if (wcfg.useRegions
&& (itemId == 322 || itemId == 320 || itemId == 319 || itemId == 297 || itemId == 260
|| itemId == 350 || itemId == 349 || itemId == 354) ) {
return;