mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-15 20:51:34 +01:00
Fixed time packet being sent every tick (should be every second now)
This commit is contained in:
parent
c60f625c55
commit
1bf8c5f89b
@ -67,7 +67,7 @@ public abstract class Instance implements BlockModifier, EventHandler, DataConta
|
||||
// The time of the instance
|
||||
private long time;
|
||||
private int timeRate = 1;
|
||||
private UpdateOption timeUpdate = new UpdateOption(1, TimeUnit.TICK);
|
||||
private UpdateOption timeUpdate = new UpdateOption(1, TimeUnit.SECOND);
|
||||
private long lastTimeUpdate;
|
||||
|
||||
private final Map<Class<? extends Event>, Collection<EventCallback>> eventCallbacks = new ConcurrentHashMap<>();
|
||||
|
Loading…
Reference in New Issue
Block a user