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