diff --git a/src/main/scala/resonantinduction/core/prefab/node/NodeTank.java b/src/main/scala/resonantinduction/core/prefab/node/NodeTank.java index 03d0035d8..dc565787e 100644 --- a/src/main/scala/resonantinduction/core/prefab/node/NodeTank.java +++ b/src/main/scala/resonantinduction/core/prefab/node/NodeTank.java @@ -157,14 +157,14 @@ public class NodeTank extends NodeConnector implements IFluidTank, IFluidHandler public void sendTank() { - ResonantEngine.instance.packetHandler.sendToAllAround(new PacketTile((int)x(), (int)y(), (int)z(), tank.writeToNBT(new NBTTagCompound())), this, 64); + ResonantEngine.instance.packetHandler.sendToAllAround(new PacketTile((int)x(), (int)y(), (int)z(), PACKET_TANK, tank.writeToNBT(new NBTTagCompound())), this, 64); } public void sendUpdate() { NBTTagCompound tag = new NBTTagCompound(); save(tag); - ResonantEngine.instance.packetHandler.sendToAllAround(new PacketTile((int)x(), (int)y(), (int)z(), tag), this, 64); + ResonantEngine.instance.packetHandler.sendToAllAround(new PacketTile((int)x(), (int)y(), (int)z(), PACKET_DESCRIPTION, tag), this, 64); } diff --git a/src/main/scala/resonantinduction/core/prefab/node/TileTankNode.scala b/src/main/scala/resonantinduction/core/prefab/node/TileTankNode.scala index 92d7d55fe..1597aeccc 100644 --- a/src/main/scala/resonantinduction/core/prefab/node/TileTankNode.scala +++ b/src/main/scala/resonantinduction/core/prefab/node/TileTankNode.scala @@ -9,7 +9,7 @@ import net.minecraftforge.common.util.ForgeDirection import net.minecraftforge.fluids._ import resonant.content.prefab.java.TileAdvanced import resonant.lib.network.discriminator.{PacketTile, PacketType} -import resonant.lib.network.handle.{IPacketIDReceiver, TPacketIDSender} +import resonant.lib.network.handle.IPacketIDReceiver import universalelectricity.api.core.grid.{INode, INodeProvider} /** @@ -17,7 +17,7 @@ import universalelectricity.api.core.grid.{INode, INodeProvider} * * @author DarkGuardsman */ -class TileTankNode(material: Material) extends TileAdvanced(material) with INodeProvider with IFluidHandler with IPacketIDReceiver with TPacketIDSender +class TileTankNode(material: Material) extends TileAdvanced(material) with INodeProvider with IFluidHandler with IPacketIDReceiver { val PACKET_DESCRIPTION = 0 val PACKET_RENDER = 1 diff --git a/src/main/scala/resonantinduction/mechanical/process/crusher/TileMechanicalPiston.java b/src/main/scala/resonantinduction/mechanical/process/crusher/TileMechanicalPiston.java index ec7b8765a..d4296e696 100644 --- a/src/main/scala/resonantinduction/mechanical/process/crusher/TileMechanicalPiston.java +++ b/src/main/scala/resonantinduction/mechanical/process/crusher/TileMechanicalPiston.java @@ -36,7 +36,6 @@ public class TileMechanicalPiston extends TileMechanical mechanicalNode = new MechanicalNode(this) { - public void onUpdate() { super.onUpdate(); System.out.println("MechPistonTick");} @Override protected void revolve() {