Major packet improvements - trying to get on the good side of server owners. More to come.

Instead of sending to all players in a dimension or within a defined range, packets will now only be sent to players who have the chunk loaded that the packet is being sent from on the server.
This commit is contained in:
Aidan C. Brady committed 2014-08-07 21:33:17 -04:00
1 parent 14b40d901a
commit 1fd5e498e8
20 files changed
+99 -54

No files matched your search

@@ -122,10 +122,7 @@ public class TileEntityElectricPump extends TileEntityElectricBlock implements I
{
if(getEnergy() >= Mekanism.electricPumpUsage && (fluidTank.getFluid() == null || fluidTank.getFluid().amount+FluidContainerRegistry.BUCKET_VOLUME <= fluidTank.getCapacity()))
{
if(suck(true))
{
Mekanism.packetHandler.sendToAllAround(new TileEntityMessage(Coord4D.get(this), getNetworkedData(new ArrayList())), Coord4D.get(this).getTargetPoint(50D));
}
suck(true);
}
}