mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 07:56:01 +00:00
quick fix : Manual min/max calculation
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user