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

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;