Fixed performance of combustion gen, stirling gen and tanks.

This commit is contained in:
CrazyPants committed 2014-05-28 19:43:52 +08:00
1 parent ddba319e6d
commit 7abf8d26f0
19 files changed
+329 -93

No files matched your search

@@ -17,10 +17,12 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.network.INetHandler;
import net.minecraft.network.NetHandlerPlayServer;
import net.minecraft.tileentity.TileEntity;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.network.FMLEmbeddedChannel;
import cpw.mods.fml.common.network.FMLOutboundHandler;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
import cpw.mods.fml.common.network.internal.FMLProxyPacket;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -210,6 +212,10 @@ public class PacketPipeline extends MessageToMessageCodec<FMLProxyPacket, IPacke
this.channels.get(Side.SERVER).writeAndFlush(message);
}
public void sendToAllAround(IPacketEio message, TileEntity te) {
sendToAllAround(message, new TargetPoint(te.getWorldObj().provider.dimensionId, te.xCoord, te.yCoord, te.zCoord, 16));
}
/**
* Send this message to everyone within the supplied dimension.
* <p/>