v1.1.2: fixed bags opening an invisible window if quick used while empty

This commit is contained in:
Evan Debenham 2021-12-29 18:17:54 -05:00
parent ff205970ca
commit a4e96c5f80
2 changed files with 1 additions and 6 deletions

View File

@ -60,7 +60,7 @@ public class Bag extends Item implements Iterable<Item> {
super.execute( hero, action );
if (action.equals( AC_OPEN )) {
if (action.equals( AC_OPEN ) && !items.isEmpty()) {
GameScene.show( new WndQuickBag( this ) );

View File

@ -67,11 +67,6 @@ public class WndQuickBag extends Window {
Collections.sort(items, quickBagComparator);
if (items.isEmpty()){
hide();
return;
}
int btnWidth = 16;
int btnHeight = 20;