Skip to content

Commit 041f7f9

Browse files
committed
Fix toggled advance_time handling
Fixes #1256
1 parent 48ad4e4 commit 041f7f9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • common/src/main/java/com/viaversion/viabackwards/protocol/v26_1to1_21_11/storage

common/src/main/java/com/viaversion/viabackwards/protocol/v26_1to1_21_11/storage/DayTimeStorage.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public void setGameTime(final long gameTime) {
3434
}
3535

3636
public long setGameTimeAndUpdateDayTime(final long gameTime) {
37-
this.dayTime += gameTime - this.gameTime;
37+
if (advanceTime) {
38+
this.dayTime += gameTime - this.gameTime;
39+
}
3840
this.gameTime = gameTime;
3941
return dayTime;
4042
}

0 commit comments

Comments
 (0)