should check both end/nether

This commit is contained in:
Jesse Boyd 2019-04-08 18:03:38 +10:00 committed by GitHub
parent 259fe94f83
commit 3f712ed5f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ public class EntitySpawnListener implements Listener {
public static void testNether(Entity entity) { public static void testNether(Entity entity) {
@NotNull World world = entity.getWorld(); @NotNull World world = entity.getWorld();
if (world.getEnvironment() != World.Environment.NETHER) { if (world.getEnvironment() != World.Environment.NETHER && world.getEnvironment() != World.Environment.THE_END) {
return; return;
} }
test(entity); test(entity);