mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-26 19:18:37 +01:00
Improve NPC pseudo-respawning
In initial testing, longer periods were better. However, that was before a lot of recoding... shorter periods are now superior and keeping significantly more NPCs visible (When dealing with batches so large that the system fails to load them all)
This commit is contained in:
parent
674bb60287
commit
2ecddf6f87
@ -93,7 +93,7 @@ public class HumanController extends AbstractEntityController {
|
||||
NMS.sendPlayerlistPacket(false, null, npc);
|
||||
}
|
||||
}
|
||||
}, 60);
|
||||
}, 2);
|
||||
return handle.getBukkitEntity();
|
||||
}
|
||||
|
||||
|
@ -512,7 +512,7 @@ public class NMS {
|
||||
sendPlayerlistPacket(false, player, npc);
|
||||
}
|
||||
}
|
||||
}, 61);
|
||||
}, 2);
|
||||
}
|
||||
|
||||
public static org.bukkit.entity.Entity spawnCustomEntity(org.bukkit.World world, Location at,
|
||||
|
Loading…
Reference in New Issue
Block a user