mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Fix broken wandering traders
By: md_5 <git@md-5.net>
This commit is contained in:
parent
9c13408431
commit
cdb7cb852f
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
|||
public EntityVillagerTrader(EntityTypes<? extends EntityVillagerTrader> entitytypes, World world) {
|
||||
super(entitytypes, world);
|
||||
this.attachedToPlayer = true;
|
||||
+ this.u(48000); // CraftBukkit - set default from MobSpawnerTrader
|
||||
+ this.setDespawnDelay(48000); // CraftBukkit - set default from MobSpawnerTrader
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
this.b.a(entityvillagertrader.getUniqueID());
|
||||
- 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.a(blockposition1, 16);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue