quick fix : Manual min/max calculation

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 114fce2770
commit 173eab9a0e
4 files changed
+6 -10

No files matched your search

@@ -57,7 +57,7 @@ public class SmelteryRender implements ISimpleBlockRenderingHandler {
while (liquidSize > 0) {
int cap = logic.getCapacityPerLayer();
int room = cap - liquidBase;
int countSize = liquidSize > room ? room : liquidSize;
int countSize = Math.min(liquidSize, room);
liquidSize -= countSize;
float height = countSize > cap ? 1.0F : (float) countSize / (float) cap;