mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
Added Fluid Tank comparator support, fixed Gas Tank comparator support
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user