fix typo which caused rightclicking the air with dyes to print an NPE
Fixes #574 Was introduced in https://github.com/TechFortress/GriefPrevention/commit/a9a7fe41a06ccb76275567b2e81dc7da54e6f857#diff-b15ac36752c3cec705105f3a5f802139R1881
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user