From 508d08b9bfa818b2757e9cbaf14f8e6d16c95e67 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Mon, 22 Jan 2024 09:54:28 +1100 Subject: [PATCH] Workaround weird negative issues with anomalies --- .../java/biomesoplenty/block/entity/AnomalyBlockEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/biomesoplenty/block/entity/AnomalyBlockEntity.java b/common/src/main/java/biomesoplenty/block/entity/AnomalyBlockEntity.java index 6e52498e5..397249fe6 100644 --- a/common/src/main/java/biomesoplenty/block/entity/AnomalyBlockEntity.java +++ b/common/src/main/java/biomesoplenty/block/entity/AnomalyBlockEntity.java @@ -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;