public virtual void LeaveNetwork() { if (DEBUG) { Api.Logger.Notification("Leaving network " + NetworkId + " at " + this.Position); } network?.Leave(this); network = null; NetworkId = 0; Blockentity.MarkDirty(); }
public override void OnBlockRemoved() { base.OnBlockRemoved(); network.Leave(this); manager.RemoveDeviceForRender(this); }