attachToNetwork is only called when placed or peripheralEnabled is toggled for modems blocks and PartModem.
It should also be called on initial construction, otherwise peripherals never receive a network object. The easiest way would be to call attachConnectedPeripherals() after creating the modem. I feel this should probably be done within the TileEntities (onWorldJoin and setWorldObj) rather than within the base modem class.
I haven't tested but I imagine the same applies to TileCable and computers.
@ElvishJerricco: This is a trivial fix, I just want to check with you before applying it.
attachToNetwork
is only called when placed orperipheralEnabled
is toggled for modems blocks andPartModem
.It should also be called on initial construction, otherwise peripherals never receive a network object. The easiest way would be to call
attachConnectedPeripherals()
after creating the modem. I feel this should probably be done within the TileEntities (onWorldJoin
andsetWorldObj
) rather than within the base modem class.I haven't tested but I imagine the same applies to
TileCable
and computers.@ElvishJerricco: This is a trivial fix, I just want to check with you before applying it.