@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/EntityZombieVillager.java
|
||||
+++ b/net/minecraft/server/EntityZombieVillager.java
|
||||
@@ -2,13 +2,18 @@
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nullable;
|
||||
@@ -11,11 +11,9 @@
|
||||
|
||||
public class EntityZombieVillager extends EntityZombie {
|
||||
|
||||
- private static final DataWatcherObject<Boolean> a = DataWatcher.a(EntityZombieVillager.class, DataWatcherRegistry.i);
|
||||
+ public static final DataWatcherObject<Boolean> a = DataWatcher.a(EntityZombieVillager.class, DataWatcherRegistry.i); // PAIL
|
||||
@@ -9,6 +13,7 @@
|
||||
private static final DataWatcherObject<Integer> b = DataWatcher.a(EntityZombieVillager.class, DataWatcherRegistry.b);
|
||||
- private int conversionTime;
|
||||
+ public int conversionTime; // PAIL
|
||||
public int conversionTime;
|
||||
private UUID bD;
|
||||
+ private int lastTick = MinecraftServer.currentTick; // CraftBukkit - add field
|
||||
|
||||
@@ -36,15 +34,10 @@
|
||||
|
||||
this.conversionTime -= i;
|
||||
if (this.conversionTime <= 0) {
|
||||
@@ -96,12 +106,14 @@
|
||||
return (Boolean) this.getDataWatcher().get(EntityZombieVillager.a);
|
||||
}
|
||||
|
||||
- protected void a(@Nullable UUID uuid, int i) {
|
||||
+ public void a(@Nullable UUID uuid, int i) { // PAIL
|
||||
@@ -100,8 +110,10 @@
|
||||
this.bD = uuid;
|
||||
this.conversionTime = i;
|
||||
this.getDataWatcher().set(EntityZombieVillager.a, true);
|
||||
this.getDataWatcher().set(EntityZombieVillager.CONVERTING, true);
|
||||
- this.removeEffect(MobEffects.WEAKNESS);
|
||||
- this.addEffect(new MobEffect(MobEffects.INCREASE_DAMAGE, i, Math.min(this.world.getDifficulty().a() - 1, 0)));
|
||||
+ // CraftBukkit start
|
||||
|
||||
Reference in New Issue
Block a user