Skip to content

Commit

Permalink
remove try catch for #117
Browse files Browse the repository at this point in the history
  • Loading branch information
maggi373 committed May 25, 2023
1 parent db80669 commit 0494164
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,7 @@ public void renderAModelAt(TileEntityThermalEvaporationController tileEntity, do
MekanismRenderer.glowOn(tileEntity.inputTank.getFluid().getFluid().getLuminosity());

DisplayInteger[] displayList = getListAndRender(data, tileEntity.inputTank.getFluid().getFluid());

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());
}
displayList[(int) (((float) tileEntity.inputTank.getFluidAmount() / tileEntity.inputTank.getCapacity()) * ((float) getStages(data.height) - 1))].render();


MekanismRenderer.glowOff();
Expand Down

0 comments on commit 0494164

Please sign in to comment.