Enable collecting items from map to equipment

This commit is contained in:
2022-08-25 13:59:22 +02:00
parent 8946297bd9
commit e366f85de1
11 changed files with 142 additions and 57 deletions

View File

@@ -79,12 +79,8 @@ public class HUD extends BorderLayout {
logVisibilityDuration = 0;
}
if (player.getWeapon() != null && player.getWeapon() != currentWeapon) {
weapon.setIcon(player.getWeapon().getIcon());
this.currentWeapon = player.getWeapon();
} else if (player.getWeapon() == null) {
this.currentWeapon = null;
}
this.currentWeapon = player.getWeapon();
}
@Override