Consider Nether Portal spawns too.

This commit is contained in:
Olof Larsson 2014-10-09 17:00:58 +02:00
parent 7658b4d42a
commit 6974c82bb6

View File

@ -664,7 +664,7 @@ public class EngineMain extends EngineAbstract
// ... and the reason for the spawn is natural ... // ... and the reason for the spawn is natural ...
SpawnReason reason = event.getSpawnReason(); SpawnReason reason = event.getSpawnReason();
if (reason != SpawnReason.NATURAL && reason != SpawnReason.JOCKEY) return; if (reason != SpawnReason.NATURAL && reason != SpawnReason.JOCKEY && reason != SpawnReason.NETHER_PORTAL) return;
// ... and monsters are forbidden at the location ... // ... and monsters are forbidden at the location ...
Location location = event.getLocation(); Location location = event.getLocation();