mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-07 04:48:07 +02:00
Fixed error with player-eat-check
This commit is contained in:
parent
916ed2652e
commit
3e9c7aa74b
@ -140,10 +140,7 @@ public void onPlayerItem(PlayerItemEvent event) {
|
|||||||
WorldGuardConfiguration cfg = plugin.getWgConfiguration();
|
WorldGuardConfiguration cfg = plugin.getWgConfiguration();
|
||||||
WorldGuardWorldConfiguration wcfg = cfg.getWorldConfig(player.getWorld().getName());
|
WorldGuardWorldConfiguration wcfg = cfg.getWorldConfig(player.getWorld().getName());
|
||||||
|
|
||||||
|
if (wcfg.useRegions
|
||||||
Material type = block.getType();
|
|
||||||
|
|
||||||
if (wcfg.useRegions && type != Material.LEVER && type != Material.STONE_BUTTON && type != Material.DIODE
|
|
||||||
&& (itemId == 322 || itemId == 320 || itemId == 319 || itemId == 297 || itemId == 260
|
&& (itemId == 322 || itemId == 320 || itemId == 319 || itemId == 297 || itemId == 260
|
||||||
|| itemId == 350 || itemId == 349 || itemId == 354) ) {
|
|| itemId == 350 || itemId == 349 || itemId == 354) ) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user