Skip to content

Commit

Permalink
Fixed #10439
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jan 29, 2025
1 parent d75a5a8 commit 5cd97f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/ui/fragments/PlacementFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ boolean hasInfoBox(){
Vec2 v = topTable.stageToLocalCoordinates(Core.input.mouse());

//if the mouse intersects the table or the UI has the mouse, no hovering can occur
if(Core.scene.hasMouse() || topTable.hit(v.x, v.y, false) != null) return null;
if(Core.scene.hasMouse(Core.input.mouseX(), Core.input.mouseY()) || topTable.hit(v.x, v.y, false) != null) return null;

//check for a unit
Unit unit = Units.closestOverlap(player.team(), Core.input.mouseWorldX(), Core.input.mouseWorldY(), 5f, u -> !u.isLocal() && u.displayable());
Expand Down

0 comments on commit 5cd97f6

Please sign in to comment.