mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-09-23 21:17:55 +02:00
Fix fireworks being spawnable in other plots
This commit is contained in:
@@ -1359,6 +1359,7 @@ public class PlayerEvents extends PlotListener implements Listener {
|
|||||||
Material handType = hand.getType();
|
Material handType = hand.getType();
|
||||||
lb = new BukkitLazyBlock(PlotBlock.get((short) handType.getId(), (byte) 0));
|
lb = new BukkitLazyBlock(PlotBlock.get((short) handType.getId(), (byte) 0));
|
||||||
switch (handType) {
|
switch (handType) {
|
||||||
|
case FIREWORK:
|
||||||
case MONSTER_EGG:
|
case MONSTER_EGG:
|
||||||
case MONSTER_EGGS:
|
case MONSTER_EGGS:
|
||||||
eventType = PlayerBlockEventType.SPAWN_MOB;
|
eventType = PlayerBlockEventType.SPAWN_MOB;
|
||||||
|
Reference in New Issue
Block a user