Added Fluid Tank comparator support, fixed Gas Tank comparator support

This commit is contained in:
aidancbrady committed 2016-06-30 12:45:15 -04:00
1 parent 3b214376ba
commit 41ea222aab
3 files changed
+46

No files matched your search

@@ -52,6 +52,8 @@ public class TileEntityGasTank extends TileEntityContainerBlock implements IGasH
public GasMode dumping;
public int currentGasAmount;
public int currentRedstoneLevel;
/** This machine's current RedstoneControl type. */
public RedstoneControl controlType;
@@ -127,6 +129,14 @@ public class TileEntityGasTank extends TileEntityContainerBlock implements IGasH
}
currentGasAmount = newGasAmount;
int newRedstoneLevel = getRedstoneLevel();
if(newRedstoneLevel != currentRedstoneLevel)
{
markDirty();
currentRedstoneLevel = newRedstoneLevel;
}
}
}