mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 11:49:14 +00:00
Cleanup
This commit is contained in:
1 parent
e26da52d21
commit
2242dfdfb9
2 files changed
+4
-4
No files matched your search
@@ -70,7 +70,7 @@ public abstract class StructureLogic implements IStructureLogic {
|
||||
|
||||
EnumStructureState state = EnumStructureState.INDETERMINATE;
|
||||
|
||||
boolean rotate = false;
|
||||
boolean rotate;
|
||||
for (int i = 0; i < schematas.length; i++) {
|
||||
if (!schematas[i].isEnabled())
|
||||
continue;
|
||||
@@ -87,7 +87,6 @@ public abstract class StructureLogic implements IStructureLogic {
|
||||
isRotated = rotate;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Structure state is indeterminate, possibly caused by chunkloading. Remain calm, do nothing.
|
||||
|
||||
@@ -61,10 +61,11 @@ public class TankWidget extends Widget {
|
||||
|
||||
@Override
|
||||
public void draw(int startX, int startY) {
|
||||
if (getTank() == null)
|
||||
StandardTank tank = getTank();
|
||||
if (tank == null)
|
||||
return;
|
||||
|
||||
FluidStack contents = getTank().getFluid();
|
||||
FluidStack contents = tank.getFluid();
|
||||
if (contents == null || contents.amount <= 0 || contents.getFluid() == null)
|
||||
return;
|
||||
IIcon liquidIcon = contents.getFluid().getIcon(contents);
|
||||
|
||||
Reference in new issue
Block a user