Fix fireworks being spawnable in other plots

This commit is contained in:
Jesse Boyd 2017-11-03 06:58:57 +11:00
parent 22429fc3e0
commit 5b6d5664e4
No known key found for this signature in database
GPG key ID: 59F1DE6293AF6E1F

View file

@ -1359,6 +1359,7 @@ public class PlayerEvents extends PlotListener implements Listener {
Material handType = hand.getType();
lb = new BukkitLazyBlock(PlotBlock.get((short) handType.getId(), (byte) 0));
switch (handType) {
case FIREWORK:
case MONSTER_EGG:
case MONSTER_EGGS:
eventType = PlayerBlockEventType.SPAWN_MOB;