Closed Frankthetankk closed 11 years ago
Can you give me more information on how to replicate it?
I found the code that is causing it although, I'll patch later this morning.
int total = logic.getTotalLiquid();
int liquidLayers = (total / 20000 + 1) * 20000;
liquidSize = liquid.amount * 52 / liquidLayers;
The divide by zero is caused by logic.getTotalLiquid() returning 0 in: drawGuiContainerForegroundLayer() SmelteryGui.java:120
It should be fixed now, but I still can't replicate the bug to check if it's completely patched:
I will try to replicate later. From memory, I was making a high yield of bronze. Copper plus tin. After the bronze drained out there was an excess of tin left over. I could see in the controller that there was ingots and nuggets left. I drained the ingots out successfully. When the last ingot was drained leaving only nuggets left I went to open the controller and it crashed. Restarting MC and loading the save works but when I open the controller with the nuggets I crashed. How I fixed was break the controller and replace it. Thus deleting the liquid tin. Hope that helps.
i will test the fix tonight thanks GraxRabble
Welcome. Glad to help.
TConstruct_1.6.2_1.4.5.1 I have a few tin nuggets left in the smeltery. When I open the smeltery gui I crash with this error. Lemme know if you need anything else.