#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

@@ -9,6 +9,15 @@
if (entityvillagertrader != null) {
for (int i = 0; i < 2; ++i) {
@@ -91,7 +91,7 @@
}
this.b.a(entityvillagertrader.getUniqueID());
- entityvillagertrader.u(48000);
+ // entityvillagertrader.u(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;
@@ -106,7 +106,7 @@
BlockPosition blockposition = this.a((IWorldReader) worldserver, entityvillagertrader.getChunkCoordinates(), i);