private void OnInvOpened(IPlayer player) { if (player.Entity.Api is ICoreClientAPI capi) { invDialog = new GuiDialogBait(this, capi); invDialog.TryOpen(); } }
private void OnInvClosed(IPlayer player) { SyncToCageStack(); invDialog?.Dispose(); invDialog = null; }