mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-05 10:20:11 +01:00
Tick potion effects less frequently to reduce CPU load
This commit is contained in:
parent
a3bdaed3b3
commit
b90b98bad2
@ -279,7 +279,9 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
super.m();
|
||||
if (npc == null)
|
||||
return;
|
||||
updateEffects = true;
|
||||
if (updateCounter + 1 > Setting.PACKET_UPDATE_DELAY.asInt()) {
|
||||
updateEffects = true;
|
||||
}
|
||||
tickPotionEffects();
|
||||
|
||||
boolean navigating = npc.getNavigator().isNavigating();
|
||||
|
Loading…
Reference in New Issue
Block a user