Fix item icon overflow visibility

This commit is contained in:
Flashfyre committed 2024-02-21 21:31:56 -05:00
1 parent b4ff755de9
commit aa13562433
2 files changed
+122 -85

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ export class ModifierBar extends Phaser.GameObjects.Container {
}
updateModifierOverflowVisibility(ignoreLimit: boolean) {
for (let modifier of this.getAll().map(m => m as Phaser.GameObjects.Container).slice(iconOverflowIndex))
for (let modifier of this.getAll().map(m => m as Phaser.GameObjects.Container).slice(0, this.getAll().length - iconOverflowIndex))
modifier.setVisible(ignoreLimit);
}