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:
RoboMWM 2019-08-31 11:48:45 -07:00
parent 91252410a8
commit e246807d8f

View File

@ -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(),