From 9334fd1370fb6321f334c6addc22cb9897666ad9 Mon Sep 17 00:00:00 2001 From: Robert S Date: Sat, 23 Aug 2014 23:18:04 -0400 Subject: [PATCH] Minor work in attempt to fix TileMechanicalPiston --- .../scala/resonantinduction/core/prefab/node/NodeTank.java | 4 ++-- .../resonantinduction/core/prefab/node/TileTankNode.scala | 4 ++-- .../mechanical/process/crusher/TileMechanicalPiston.java | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) 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() {