From f35bcb90b9040202c0cd8a18518f36e7a127bd95 Mon Sep 17 00:00:00 2001 From: MrGazdag <44264503+MrGazdag@users.noreply.github.com> Date: Tue, 27 Jul 2021 18:57:11 +0200 Subject: [PATCH] update Instance --- src/main/java/net/minestom/server/instance/Instance.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/instance/Instance.java b/src/main/java/net/minestom/server/instance/Instance.java index 4ca3fcb32..fc5917c3f 100644 --- a/src/main/java/net/minestom/server/instance/Instance.java +++ b/src/main/java/net/minestom/server/instance/Instance.java @@ -405,7 +405,7 @@ public abstract class Instance implements BlockGetter, BlockSetter, Tickable, Ta * @return the {@link TimeUpdatePacket} with this instance data */ private @NotNull TimeUpdatePacket createTimePacket() { - return new TimeUpdatePacket(worldAge, time); + return new TimeUpdatePacket(worldAge, timeRate == 0 ? -time : time); } /** @@ -791,4 +791,4 @@ public abstract class Instance implements BlockGetter, BlockSetter, Tickable, Ta public @NotNull Pointers pointers() { return this.pointers; } -} \ No newline at end of file +}