mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Work on networking update
This commit is contained in:
1 parent
da444327f8
commit
ec2040cccc
16 files changed
+86
-108
No files matched your search
@@ -115,7 +115,7 @@ public class TileEntitySalinationController extends TileEntitySalinationTank imp
|
||||
{
|
||||
if(Math.abs((float)waterTank.getFluidAmount()/waterTank.getCapacity()-prevScale) > 0.01)
|
||||
{
|
||||
Mekanism.packetPipeline.sendToAllAround(new PacketTileEntity(Coord4D.get(this), getNetworkedData(new ArrayList())), Coord4D.get(this), 50D);
|
||||
Mekanism.packetPipeline.sendToAllAround(new PacketTileEntity(Coord4D.get(this), getNetworkedData(new ArrayList())), Coord4D.get(this).getTargetPoint(50D));
|
||||
prevScale = (float)waterTank.getFluidAmount()/waterTank.getCapacity();
|
||||
}
|
||||
}
|
||||
@@ -151,7 +151,7 @@ public class TileEntitySalinationController extends TileEntitySalinationTank imp
|
||||
|
||||
if(structured != prev)
|
||||
{
|
||||
Mekanism.packetPipeline.sendToAllAround(new PacketTileEntity(Coord4D.get(this), getNetworkedData(new ArrayList())), Coord4D.get(this), 50D);
|
||||
Mekanism.packetPipeline.sendToAllAround(new PacketTileEntity(Coord4D.get(this), getNetworkedData(new ArrayList())), Coord4D.get(this).getTargetPoint(50D));
|
||||
}
|
||||
|
||||
if(structured)
|
||||
|
||||
Reference in new issue
Block a user