Skip to content

Commit

Permalink
Workaround weird negative issues with anomalies
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Jan 21, 2024
1 parent 32ae720 commit 508d08b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public BlockState getRenderState()
}
}

index %= renderStates.size();
index = Mth.positiveModulo(index, renderStates.size()); // For some bizarre reason some people have a negative time?
BlockState renderState = renderStates.stream().skip(index).findFirst().orElseThrow();

lastState = renderState;
Expand Down

0 comments on commit 508d08b

Please sign in to comment.