From f8a976d339e097cc68b71ceda2f204da8ff27da7 Mon Sep 17 00:00:00 2001 From: t3hk0d3 Date: Sun, 4 Nov 2012 01:29:04 +0400 Subject: [PATCH] Fixed spawn permission. close #59 --- .../java/ru/tehkode/modifyworld/handlers/PlayerListener.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java b/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java index 7ea2439..31d2c8f 100644 --- a/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java +++ b/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java @@ -267,8 +267,7 @@ public class PlayerListener extends ModifyworldListener { } } return; // no need to check further - case MONSTER_EGG: - case MONSTER_EGGS: + case MONSTER_EGG: // don't add MONSTER_EGGS here if (permissionDenied(player, "modifyworld.spawn", ((SpawnEgg)player.getItemInHand().getData()).getSpawnedType())) { event.setUseItemInHand(Result.DENY); }