Fixed pipes not connecting onWorldJoin

This commit is contained in:
Calclavia 2014-11-08 23:31:37 +08:00
parent c87e7e6a79
commit 5158dc6ab8
3 changed files with 2 additions and 3 deletions

View file

@ -88,7 +88,7 @@ abstract class PartFramedNode extends PartAbstract with TPartNodeProvider with T
override def writeDesc(packet: MCDataOutput)
{
super.writeDesc(packet)
packet.writeByte(clientRenderMask)
packet.writeByte(node.connectedMask)
}
override def read(packet: MCDataInput, packetID: Int)

View file

@ -16,8 +16,6 @@ class NodePipe(parent: PartPipe) extends NodePressure(parent) with TMultipartNod
{
def pipe: PartPipe = getParent.asInstanceOf[PartPipe]
onConnectionChanged = () => if (!world.isRemote) pipe.sendConnectionUpdate()
override def rebuild()
{
for (dir <- ForgeDirection.VALID_DIRECTIONS)

View file

@ -32,6 +32,7 @@ class PartPipe extends PartFramedNode with TMaterial[PipeMaterial] with TColorab
private var markPacket = true
material = PipeMaterials.ceramic
node.onConnectionChanged = () => sendConnectionUpdate()
def preparePlacement(meta: Int)
{