Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#117 bug rendering crash with mariculture infinity water bucket placed in evaporation controller #122

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public void renderAModelAt(TileEntityThermalEvaporationController tileEntity, do
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();
displayList[(int) (((float) tileEntity.inputTank.getFluidAmount() / tileEntity.inputTank.getCapacity()) * ((float) getStages(data.height) - 1))].render();


MekanismRenderer.glowOff();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void onUpdate()
{
ChargeUtils.discharge(2, this);

if(inventory[0] != null)
if(inventory[0] != null && fluidTank.getFluidAmount() <= (fluidTank.getCapacity() - 1000))
{
if(inventory[0].getItem() instanceof IFluidContainerItem)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ public void onUpdate()
{
updateTemperature();
}

manageBuckets();
if (inputTank.getFluidAmount() <= (inputTank.getCapacity() - 1001)) {
manageBuckets();
}

ThermalEvaporationRecipe recipe = getRecipe();

Expand Down