mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 20:22:12 +00:00
Added basic tank / 'fluid transposer'.
This commit is contained in:
1 parent
01a72fb825
commit
00b567c494
33 files changed
+805
-79
No files matched your search
@@ -317,9 +317,9 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
|
||||
redstoneStateDirty = false;
|
||||
}
|
||||
|
||||
if(worldObj.getTotalWorldTime() % 20 == 0) {
|
||||
requiresClientSync |= doSideIo();
|
||||
}
|
||||
|
||||
requiresClientSync |= doSideIo();
|
||||
|
||||
|
||||
requiresClientSync |= prevRedCheck != redstoneCheckPassed;
|
||||
|
||||
@@ -348,6 +348,7 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
|
||||
if(faceModes == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean res = false;
|
||||
Set<Entry<ForgeDirection, IoMode>> ents = faceModes.entrySet();
|
||||
for(Entry<ForgeDirection, IoMode> ent : ents) {
|
||||
@@ -367,6 +368,9 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
|
||||
if(slotDefinition.getNumOutputSlots() <= 0) {
|
||||
return false;
|
||||
}
|
||||
if(worldObj.getWorldTime() % 20 != 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
BlockCoord loc = getLocation().getLocation(dir);
|
||||
TileEntity te = worldObj.getTileEntity(loc.x, loc.y, loc.z);
|
||||
@@ -398,6 +402,9 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
|
||||
if(slotDefinition.getNumInputSlots() <= 0) {
|
||||
return false;
|
||||
}
|
||||
if(worldObj.getWorldTime() % 20 != 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean hasSpace = false;
|
||||
for(int slot=slotDefinition.minInputSlot; slot <= slotDefinition.maxInputSlot && !hasSpace;slot++) {
|
||||
|
||||
Reference in new issue
Block a user