fix typo which caused rightclicking the air with dyes to print an NPE
Fixes #574
Was introduced in
a9a7fe41a0 (diff-b15ac36752c3cec705105f3a5f802139R1881)
This commit is contained in:
parent
91252410a8
commit
e246807d8f
|
|
@ -1880,12 +1880,9 @@ class PlayerEventHandler implements Listener
|
|||
|| materialInHand == Material.ARMOR_STAND
|
||||
|| (spawn_eggs.contains(materialInHand) && GriefPrevention.instance.config_claims_preventGlobalMonsterEggs)
|
||||
|| materialInHand == Material.END_CRYSTAL
|
||||
|| materialInHand == Material.FLINT_AND_STEEL)
|
||||
|| dyes.contains(materialInHand))
|
||||
|| materialInHand == Material.FLINT_AND_STEEL
|
||||
|| dyes.contains(materialInHand)))
|
||||
{
|
||||
if (instance == null)
|
||||
System.out.println("[GP] instance is null which means _somebody_ did something to this plugin.");
|
||||
|
||||
String noBuildReason = instance
|
||||
.allowBuild(player, clickedBlock
|
||||
.getLocation(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user