fix team list being clickable even when inactive
@@ -423,6 +423,7 @@ public class EditModuleScreen extends Screen {
@Override
protected boolean clickPanel(double mouseX, double mouseY, int button) {
+ if (active) {
int slotIndex = (int) (mouseY + (border / 2)) / slotHeight;
if (slotIndex >= 0 && mouseY >= 0 && slotIndex < listLength) {
@@ -430,6 +431,7 @@ public class EditModuleScreen extends Screen {
minecraft.getSoundManager().play(SimpleSoundInstance.forUI(SoundEvents.UI_BUTTON_CLICK, 1.0F));
return true;
}
+ }
return false;
}
