From 04dbeb4bf16f4d73092ac59c9a2ce9f276d8f72c Mon Sep 17 00:00:00 2001 From: Zach Brown <1254957+zachbr@users.noreply.github.com> Date: Sun, 18 Jan 2015 12:43:42 -0600 Subject: [PATCH] Fix certain mobs crashing the server from MobSpawners --- ...-crashing-the-server-from-MobSpawner.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Spigot-Server-Patches/Fix-certain-mobs-crashing-the-server-from-MobSpawner.patch diff --git a/Spigot-Server-Patches/Fix-certain-mobs-crashing-the-server-from-MobSpawner.patch b/Spigot-Server-Patches/Fix-certain-mobs-crashing-the-server-from-MobSpawner.patch new file mode 100644 index 0000000000..c63664f902 --- /dev/null +++ b/Spigot-Server-Patches/Fix-certain-mobs-crashing-the-server-from-MobSpawner.patch @@ -0,0 +1,20 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Zach Brown <1254957+zachbr@users.noreply.github.com> +Date: Sun, 18 Jan 2015 12:42:51 -0600 +Subject: [PATCH] Fix certain mobs crashing the server from MobSpawners + + +diff --git a/src/main/java/net/minecraft/server/MobSpawnerAbstract.java b/src/main/java/net/minecraft/server/MobSpawnerAbstract.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/server/MobSpawnerAbstract.java ++++ b/src/main/java/net/minecraft/server/MobSpawnerAbstract.java +@@ -0,0 +0,0 @@ public abstract class MobSpawnerAbstract { + + entity1 = entity2; + } +- } else if (entity instanceof EntityLiving && entity.world != null && flag) { ++ } else if (entity instanceof EntityInsentient && entity.world != null && flag) { // PaperSpigot - EntityLiving -> EntityInsentient + ((EntityInsentient) entity).prepare(entity.world.E(new BlockPosition(entity)), (GroupDataEntity) null); + // Spigot start - call SpawnerSpawnEvent, abort if cancelled + SpawnerSpawnEvent event = CraftEventFactory.callSpawnerSpawnEvent(entity, this.b().getX(), this.b().getY(), this.b().getZ()); +-- \ No newline at end of file