mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Merge branch 'development' into 1.8.9
This commit is contained in:
commit
0cb18773aa
1288 files changed
+11316
-7212
No files matched your search
@@ -42,7 +42,7 @@ public class TileEntityBoilerCasing extends TileEntityMultiblock<SynchronizedBoi
|
||||
|
||||
public TileEntityBoilerCasing()
|
||||
{
|
||||
this("SteamBoiler");
|
||||
this("BoilerCasing");
|
||||
}
|
||||
|
||||
public TileEntityBoilerCasing(String name)
|
||||
@@ -119,9 +119,13 @@ public class TileEntityBoilerCasing extends TileEntityMultiblock<SynchronizedBoi
|
||||
data.prevActive = data.activeTicks > 0;
|
||||
}
|
||||
|
||||
if(needsValveUpdate || structure.needsRenderUpdate())
|
||||
boolean needsHotUpdate = false;
|
||||
boolean newHot = structure.temperature >= SynchronizedBoilerData.BASE_BOIL_TEMP-0.01F;
|
||||
|
||||
if(newHot != structure.clientHot)
|
||||
{
|
||||
sendPacketToRenderer();
|
||||
needsHotUpdate = true;
|
||||
structure.clientHot = newHot;
|
||||
}
|
||||
|
||||
double[] d = structure.simulateHeat();
|
||||
@@ -155,8 +159,13 @@ public class TileEntityBoilerCasing extends TileEntityMultiblock<SynchronizedBoi
|
||||
structure.lastMaxBoil = 0;
|
||||
}
|
||||
|
||||
structure.prevWater = structure.waterStored;
|
||||
structure.prevSteam = structure.steamStored;
|
||||
if(needsValveUpdate || structure.needsRenderUpdate() || needsHotUpdate)
|
||||
{
|
||||
sendPacketToRenderer();
|
||||
}
|
||||
|
||||
structure.prevWater = structure.waterStored != null ? structure.waterStored.copy() : null;
|
||||
structure.prevSteam = structure.steamStored != null ? structure.steamStored.copy() : null;
|
||||
|
||||
MekanismUtils.saveChunk(this);
|
||||
}
|
||||
@@ -242,6 +251,8 @@ public class TileEntityBoilerCasing extends TileEntityMultiblock<SynchronizedBoi
|
||||
|
||||
if(isRendering)
|
||||
{
|
||||
data.add(structure.clientHot);
|
||||
|
||||
Set<ValveData> toSend = new HashSet<ValveData>();
|
||||
|
||||
for(ValveData valveData : structure.valves)
|
||||
@@ -321,6 +332,9 @@ public class TileEntityBoilerCasing extends TileEntityMultiblock<SynchronizedBoi
|
||||
|
||||
if(isRendering)
|
||||
{
|
||||
structure.clientHot = dataStream.readBoolean();
|
||||
SynchronizedBoilerData.clientHotMap.put(structure.inventoryID, structure.clientHot);
|
||||
|
||||
int size = dataStream.readInt();
|
||||
|
||||
valveViewing.clear();
|
||||
|
||||
Reference in new issue
Block a user