mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 08:27:45 +00:00
Fixed updateEveryXTicks being inconsistent due to using entity's ticksExisted. IAction instances now track their own tick
This commit is contained in:
1 parent
7e1374d96a
commit
e0c9bfffa5
8 files changed
+31
-34
No files matched your search
@@ -21,7 +21,7 @@ public class ServerTickHandler {
|
||||
@SubscribeEvent
|
||||
public void onServerTick(TickEvent.ServerTickEvent event) {
|
||||
if (event.phase == Phase.END) {
|
||||
NpcAPI.actionManager.tick(MinecraftServer.getServer().getTickCounter());
|
||||
NpcAPI.actionManager.tick();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user