Fixed pipes not connecting onWorldJoin
This commit is contained in:
parent
c87e7e6a79
commit
5158dc6ab8
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue