mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 23:13:21 +00:00
Fixed issues when day/night cycle disabled.
This commit is contained in:
1 parent
a924e35d39
commit
b4e64657e4
8 files changed
+15
-15
No files matched your search
@@ -212,7 +212,7 @@ public class TileTank extends AbstractMachineEntity implements IFluidHandler {
|
||||
tankDirty = false;
|
||||
return true;
|
||||
}
|
||||
if(tankDirty && worldObj.getWorldTime() % 10 == 0) {
|
||||
if(tankDirty && worldObj.getTotalWorldTime() % 10 == 0) {
|
||||
PacketHandler.sendToAllAround(new PacketTank(this), this);
|
||||
tankDirty = false;
|
||||
}
|
||||
@@ -223,7 +223,7 @@ public class TileTank extends AbstractMachineEntity implements IFluidHandler {
|
||||
if(!redstoneCheckPassed) {
|
||||
return false;
|
||||
}
|
||||
if(worldObj.getWorldTime() % 20 != 0) {
|
||||
if(worldObj.getTotalWorldTime() % 20 != 0) {
|
||||
return false;
|
||||
}
|
||||
return drainFullContainer() || fillEmptyContainer();
|
||||
|
||||
Reference in new issue
Block a user