Fix broken wandering traders

This commit is contained in:
md_5 2021-03-20 08:55:48 +11:00
parent d54b500db2
commit 9c32a8794c
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
public EntityVillagerTrader(EntityTypes<? extends EntityVillagerTrader> entitytypes, World world) { public EntityVillagerTrader(EntityTypes<? extends EntityVillagerTrader> entitytypes, World world) {
super(entitytypes, world); super(entitytypes, world);
this.attachedToPlayer = true; this.attachedToPlayer = true;
+ this.u(48000); // CraftBukkit - set default from MobSpawnerTrader + this.setDespawnDelay(48000); // CraftBukkit - set default from MobSpawnerTrader
} }
@Override @Override

View File

@ -14,7 +14,7 @@
this.b.a(entityvillagertrader.getUniqueID()); this.b.a(entityvillagertrader.getUniqueID());
- entityvillagertrader.setDespawnDelay(48000); - entityvillagertrader.setDespawnDelay(48000);
+ // entityvillagertrader.u(48000); // CraftBukkit - moved to EntityVillagerTrader constructor. This lets the value be modified by plugins on CreatureSpawnEvent + // entityvillagertrader.setDespawnDelay(48000); // CraftBukkit - moved to EntityVillagerTrader constructor. This lets the value be modified by plugins on CreatureSpawnEvent
entityvillagertrader.g(blockposition1); entityvillagertrader.g(blockposition1);
entityvillagertrader.a(blockposition1, 16); entityvillagertrader.a(blockposition1, 16);
return true; return true;