add try catch for testing #117

This commit is contained in:
maggi373 committed 2023-05-25 21:22:51 +02:00
1 parent a402fbf779
commit 1f57c60893
1 file changed
+7 -1
@@ -52,7 +52,13 @@ public class RenderThermalEvaporationController extends TileEntitySpecialRendere
MekanismRenderer.glowOn(tileEntity.inputTank.getFluid().getFluid().getLuminosity());
DisplayInteger[] displayList = getListAndRender(data, tileEntity.inputTank.getFluid().getFluid());
displayList[(int)(((float)tileEntity.inputTank.getFluidAmount()/tileEntity.inputTank.getCapacity())*((float)getStages(data.height)-1))].render();
try {
displayList[(int) (((float) tileEntity.inputTank.getFluidAmount() / tileEntity.inputTank.getCapacity()) * ((float) getStages(data.height) - 1))].render();
} catch (Exception e) {
System.out.print("\nThermal Evaporation Controller Render Error\n" + e + tileEntity.inputTank.getFluidAmount() + " v "+ tileEntity.inputTank.getCapacity());
}
MekanismRenderer.glowOff();