#802: Add methods to modify despawn delay for wandering villagers

By: DiamondDagger590 <diamonddagger590@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2021-02-15 19:30:15 +11:00
parent 64ef04d7e4
commit 932b0a5bf6
3 changed files with 28 additions and 1 deletions

View File

@@ -13,7 +13,15 @@
public class EntityVillagerTrader extends EntityVillagerAbstract {
@@ -89,7 +95,16 @@
@@ -12,6 +18,7 @@
public EntityVillagerTrader(EntityTypes<? extends EntityVillagerTrader> entitytypes, World world) {
super(entitytypes, world);
this.attachedToPlayer = true;
+ this.u(48000); // CraftBukkit - set default from MobSpawnerTrader
}
@Override
@@ -89,7 +96,16 @@
MerchantRecipe merchantrecipe = villagertrades_imerchantrecipeoption.a(this, this.random);
if (merchantrecipe != null) {