mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Fix Biogas Engine not noticing its generated power is being used
This commit is contained in:
1 parent
72234d9b5d
commit
e1eb4d25fb
2 files changed
+2
-2
No files matched your search
@@ -282,6 +282,7 @@ public abstract class TileEngine extends TileBase implements IActivatable, IStre
|
||||
public void writeGuiData(PacketBufferForestry data) {
|
||||
data.writeInt(currentOutput);
|
||||
data.writeInt(heat);
|
||||
data.writeBoolean(forceCooldown);
|
||||
energyManager.writeData(data);
|
||||
}
|
||||
|
||||
@@ -289,6 +290,7 @@ public abstract class TileEngine extends TileBase implements IActivatable, IStre
|
||||
public void readGuiData(PacketBufferForestry data) throws IOException {
|
||||
currentOutput = data.readInt();
|
||||
heat = data.readInt();
|
||||
forceCooldown = data.readBoolean();
|
||||
energyManager.readData(data);
|
||||
}
|
||||
|
||||
|
||||
@@ -291,7 +291,6 @@ public class TileEnginePeat extends TileEngine implements ISidedInventory {
|
||||
super.writeGuiData(data);
|
||||
data.writeInt(burnTime);
|
||||
data.writeInt(totalBurnTime);
|
||||
data.writeBoolean(forceCooldown);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -299,7 +298,6 @@ public class TileEnginePeat extends TileEngine implements ISidedInventory {
|
||||
super.readGuiData(data);
|
||||
burnTime = data.readInt();
|
||||
totalBurnTime = data.readInt();
|
||||
forceCooldown = data.readBoolean();
|
||||
}
|
||||
|
||||
/* ITriggerProvider */
|
||||
|
||||
Reference in new issue
Block a user