v0.9.3: fixed quickslots visually appearing enabled when refreshed

This commit is contained in:
Evan Debenham
2021-04-01 01:15:27 -04:00
parent b6bc29ff63
commit c7b60a5ae6
2 changed files with 3 additions and 3 deletions
@@ -176,7 +176,7 @@ public class ItemSlot extends Button {
} }
} }
private void updateText(){ public void updateText(){
if (itemIcon != null){ if (itemIcon != null){
remove(itemIcon); remove(itemIcon);
@@ -189,7 +189,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
slot.item( item ); slot.item( item );
enableSlot(); enableSlot();
} }
public void enable( boolean value ) { public void enable( boolean value ) {
active = value; active = value;
if (value) { if (value) {
@@ -257,7 +257,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
public static void refresh() { public static void refresh() {
for (int i = 0; i < instance.length; i++) { for (int i = 0; i < instance.length; i++) {
if (instance[i] != null) { if (instance[i] != null) {
instance[i].item(select(i)); instance[i].slot.updateText();
} }
} }
} }