Stops resizing when over ModuleListComponent max width

This commit is contained in:
noil 2020-12-29 18:31:59 -05:00
parent d93601220c
commit e68943cf90
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ public final class ModuleListComponent extends ResizableHudComponent {
if (this.getW() > MAX_WIDTH) {
this.setW(MAX_WIDTH);
this.setResizeDragging(false);
}
} else if (!this.isLocked() && this.currentSettings == null && this.getH() > this.getTotalHeight()) {
this.setH(this.getTotalHeight());