2019-12-04 06:58:22 +01:00
|
|
|
--- a/net/minecraft/server/MobSpawnerTrader.java
|
|
|
|
+++ b/net/minecraft/server/MobSpawnerTrader.java
|
2020-01-21 22:00:00 +01:00
|
|
|
@@ -78,7 +78,7 @@
|
2019-12-04 06:58:22 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
- EntityVillagerTrader entityvillagertrader = (EntityVillagerTrader) EntityTypes.WANDERING_TRADER.spawnCreature(this.b, (NBTTagCompound) null, (IChatBaseComponent) null, (EntityHuman) null, blockposition2, EnumMobSpawn.EVENT, false, false);
|
|
|
|
+ EntityVillagerTrader entityvillagertrader = (EntityVillagerTrader) EntityTypes.WANDERING_TRADER.spawnCreature(this.b, (NBTTagCompound) null, (IChatBaseComponent) null, (EntityHuman) null, blockposition2, EnumMobSpawn.EVENT, false, false, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.NATURAL); // CraftBukkit
|
|
|
|
|
|
|
|
if (entityvillagertrader != null) {
|
|
|
|
for (int i = 0; i < 2; ++i) {
|
2020-01-21 22:00:00 +01:00
|
|
|
@@ -101,7 +101,7 @@
|
2019-12-04 06:58:22 +01:00
|
|
|
BlockPosition blockposition = this.a(new BlockPosition(entityvillagertrader), i);
|
|
|
|
|
|
|
|
if (blockposition != null) {
|
|
|
|
- EntityLlamaTrader entityllamatrader = (EntityLlamaTrader) EntityTypes.TRADER_LLAMA.spawnCreature(this.b, (NBTTagCompound) null, (IChatBaseComponent) null, (EntityHuman) null, blockposition, EnumMobSpawn.EVENT, false, false);
|
|
|
|
+ EntityLlamaTrader entityllamatrader = (EntityLlamaTrader) EntityTypes.TRADER_LLAMA.spawnCreature(this.b, (NBTTagCompound) null, (IChatBaseComponent) null, (EntityHuman) null, blockposition, EnumMobSpawn.EVENT, false, false, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.NATURAL); // CraftBukkit
|
|
|
|
|
|
|
|
if (entityllamatrader != null) {
|
|
|
|
entityllamatrader.setLeashHolder(entityvillagertrader, true);
|