mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-10-07 02:57:28 +02:00
Fixed NPE in last commit
This commit is contained in:
parent
d971389746
commit
d9aeb6afaa
@ -382,7 +382,8 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
if (item.getData().getItemType() == Material.INK_SACK
|
||||
if (item.getType() == Material.INK_SACK
|
||||
&& item.getData() != null
|
||||
&& item.getData().getData() == 15 // bonemeal
|
||||
&& type == Material.GRASS) {
|
||||
if (!plugin.getGlobalRegionManager().hasBypass(player, world)
|
||||
|
Loading…
Reference in New Issue
Block a user