Fix not being able to click on side buttons while using flipped mouse controls.
@@ -138,6 +138,8 @@ public class TinkerStationScreen extends BaseStationScreen<TinkerStationTileEnti
SlotInformation slotInformation = SlotInformationLoader.get(Util.getResource("repair_" + max));
this.currentData = slotInformation;
this.activeSlots = Math.min(slotInformation.getPoints().size(), max);
+
+ this.passEvents = false;
}
@Override
@@ -497,6 +499,10 @@ public class TinkerStationScreen extends BaseStationScreen<TinkerStationTileEnti
return false;
}
+ if(this.buttonsScreen.handleMouseClicked(mouseX, mouseY, mouseButton)) {
+ return false;
+ }
+
return this.textField.mouseClicked(mouseX, mouseY, mouseButton) || super.mouseClicked(mouseX, mouseY, mouseButton);
}
@@ -536,6 +542,10 @@ public class TinkerStationScreen extends BaseStationScreen<TinkerStationTileEnti
return false;
}
+ if (this.buttonsScreen.handleMouseReleased(mouseX, mouseY, state)) {
+ return false;
+ }
+
return super.mouseReleased(mouseX, mouseY, state);
}
