@@ -1,8 +1,8 @@
|
||||
--- a/net/minecraft/world/entity/npc/EntityVillager.java
|
||||
+++ b/net/minecraft/world/entity/npc/EntityVillager.java
|
||||
@@ -89,6 +89,14 @@
|
||||
@@ -90,6 +90,14 @@
|
||||
import net.minecraft.world.phys.AxisAlignedBB;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.slf4j.Logger;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import org.bukkit.Bukkit;
|
||||
@@ -14,8 +14,8 @@
|
||||
+
|
||||
public class EntityVillager extends EntityVillagerAbstract implements ReputationHandler, VillagerDataHolder {
|
||||
|
||||
private static final DataWatcherObject<VillagerData> DATA_VILLAGER_DATA = DataWatcher.defineId(EntityVillager.class, DataWatcherRegistry.VILLAGER_DATA);
|
||||
@@ -146,7 +154,7 @@
|
||||
private static final Logger LOGGER = LogUtils.getLogger();
|
||||
@@ -148,7 +156,7 @@
|
||||
|
||||
@Override
|
||||
public BehaviorController<EntityVillager> getBrain() {
|
||||
@@ -24,7 +24,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -229,7 +237,7 @@
|
||||
@@ -231,7 +239,7 @@
|
||||
this.increaseProfessionLevelOnUpdate = false;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -357,7 +365,13 @@
|
||||
@@ -359,7 +367,13 @@
|
||||
while (iterator.hasNext()) {
|
||||
MerchantRecipe merchantrecipe = (MerchantRecipe) iterator.next();
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
}
|
||||
|
||||
this.lastRestockGameTime = this.level.getGameTime();
|
||||
@@ -415,7 +429,13 @@
|
||||
@@ -417,7 +431,13 @@
|
||||
while (iterator.hasNext()) {
|
||||
MerchantRecipe merchantrecipe = (MerchantRecipe) iterator.next();
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -474,7 +494,7 @@
|
||||
@@ -476,7 +496,7 @@
|
||||
@Override
|
||||
public void addAdditionalSaveData(NBTTagCompound nbttagcompound) {
|
||||
super.addAdditionalSaveData(nbttagcompound);
|
||||
@@ -72,7 +72,7 @@
|
||||
Logger logger = EntityVillager.LOGGER;
|
||||
|
||||
Objects.requireNonNull(logger);
|
||||
@@ -816,7 +836,12 @@
|
||||
@@ -818,7 +838,12 @@
|
||||
}
|
||||
|
||||
entitywitch.setPersistenceRequired();
|
||||
@@ -86,7 +86,7 @@
|
||||
this.releaseAllPois();
|
||||
this.discard();
|
||||
} else {
|
||||
@@ -837,6 +862,13 @@
|
||||
@@ -839,6 +864,13 @@
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
this.onItemPickup(entityitem);
|
||||
this.take(entityitem, itemstack.getCount());
|
||||
ItemStack itemstack1 = inventorysubcontainer.addItem(itemstack);
|
||||
@@ -949,7 +981,7 @@
|
||||
@@ -951,7 +983,7 @@
|
||||
|
||||
if (entityirongolem != null) {
|
||||
if (entityirongolem.checkSpawnRules(worldserver, EnumMobSpawn.MOB_SUMMONED) && entityirongolem.checkSpawnObstruction(worldserver)) {
|
||||
@@ -109,7 +109,7 @@
|
||||
return entityirongolem;
|
||||
}
|
||||
|
||||
@@ -1027,7 +1059,7 @@
|
||||
@@ -1029,7 +1061,7 @@
|
||||
@Override
|
||||
public void startSleeping(BlockPosition blockposition) {
|
||||
super.startSleeping(blockposition);
|
||||
@@ -118,7 +118,7 @@
|
||||
this.brain.eraseMemory(MemoryModuleType.WALK_TARGET);
|
||||
this.brain.eraseMemory(MemoryModuleType.CANT_REACH_WALK_TARGET_SINCE);
|
||||
}
|
||||
@@ -1035,7 +1067,7 @@
|
||||
@@ -1037,7 +1069,7 @@
|
||||
@Override
|
||||
public void stopSleeping() {
|
||||
super.stopSleeping();
|
||||
|
||||
Reference in New Issue
Block a user