wtf, this has its own spawn reason, thanks spigot

Fixes #1803
This commit is contained in:
Jesse Boyd 2018-05-07 10:15:02 +10:00
parent d49bfa612e
commit ef54775ca7
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -1544,6 +1544,7 @@ public class PlayerEvents extends PlotListener implements Listener {
switch (reason) {
case SPAWNER_EGG:
case DISPENSE_EGG:
case OCELOT_BABY:
if (!area.SPAWN_EGGS) {
event.setCancelled(true);
return;
@ -1748,7 +1749,7 @@ public class PlayerEvents extends PlotListener implements Listener {
case PAINTING:
case ARMOR_STAND:
return checkEntity(plot, Flags.ENTITY_CAP, Flags.MISC_CAP);
// misc
// misc
case MINECART:
case MINECART_CHEST:
case MINECART_COMMAND: