update Instance

This commit is contained in:
MrGazdag 2021-07-27 18:57:11 +02:00 committed by GitHub
parent 2e406e5c46
commit f35bcb90b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,7 +405,7 @@ public abstract class Instance implements BlockGetter, BlockSetter, Tickable, Ta
* @return the {@link TimeUpdatePacket} with this instance data * @return the {@link TimeUpdatePacket} with this instance data
*/ */
private @NotNull TimeUpdatePacket createTimePacket() { 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() { public @NotNull Pointers pointers() {
return this.pointers; return this.pointers;
} }
} }