#802: Add methods to modify despawn delay for wandering villagers
By: DiamondDagger590 <diamonddagger590@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user