v0.4.1: fixed some bugs with item slot changes
This commit is contained in:
parent
60edaf8292
commit
1c2bb40b26
|
@ -149,15 +149,15 @@ public class ItemSlot extends Button {
|
|||
this.item = item;
|
||||
|
||||
if (item == null) {
|
||||
|
||||
active = false;
|
||||
|
||||
enable(false);
|
||||
icon.visible(false);
|
||||
|
||||
updateText();
|
||||
|
||||
} else {
|
||||
|
||||
active = true;
|
||||
enable(true);
|
||||
icon.visible(true);
|
||||
|
||||
icon.view( item );
|
||||
|
|
Loading…
Reference in New Issue
Block a user