Minor work in attempt to fix TileMechanicalPiston

This commit is contained in:
Robert S 2014-08-23 23:18:04 -04:00
parent 3a20055199
commit 9334fd1370
3 changed files with 4 additions and 5 deletions

View file

@ -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);
}

View file

@ -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

View file

@ -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()
{