From 7fbc14c40d0f10925a246bcf0b5a7d7dcae05817 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 6 Nov 2018 18:03:23 +1100 Subject: Improve zombie villagers --- nms-patches/EntityZombieVillager.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nms-patches/EntityZombieVillager.patch b/nms-patches/EntityZombieVillager.patch index 247d0227..2b8d7cdd 100644 --- a/nms-patches/EntityZombieVillager.patch +++ b/nms-patches/EntityZombieVillager.patch @@ -8,9 +8,12 @@ public EntityZombieVillager(World world) { super(world); -@@ -60,6 +61,11 @@ +@@ -58,8 +59,13 @@ + } + public void B_() { - if (!this.world.isClientSide && this.isConverting()) { +- if (!this.world.isClientSide && this.isConverting()) { ++ if (!this.world.isClientSide && this.isConverting() && this.isAlive()) { // CraftBukkit int i = this.du(); + // CraftBukkit start - Use wall time instead of ticks for villager conversion + int elapsedTicks = MinecraftServer.currentTick - this.lastTick; -- cgit v1.2.3