Пример #1
0
 private void OnInvOpened(IPlayer player)
 {
     if (player.Entity.Api is ICoreClientAPI capi)
     {
         invDialog = new GuiDialogBait(this, capi);
         invDialog.TryOpen();
     }
 }
Пример #2
0
 private void OnInvClosed(IPlayer player)
 {
     SyncToCageStack();
     invDialog?.Dispose();
     invDialog = null;
 }