mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +03:00
Fixed incorrect block config offset
This commit is contained in:
@@ -1682,7 +1682,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
/** Update table alignment after configuring.*/
|
/** Update table alignment after configuring.*/
|
||||||
public void updateTableAlign(Table table){
|
public void updateTableAlign(Table table){
|
||||||
Vec2 pos = Core.input.mouseScreen(x, y - block.size * tilesize / 2f - 1);
|
Vec2 pos = Core.input.mouseScreen(x, y - block.size * tilesize / 2f - 1);
|
||||||
table.setPosition(pos.x, pos.y, Align.top);
|
table.setPosition(pos.x - Core.scene.marginLeft, pos.y - Core.scene.marginBottom, Align.top);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns whether a hand cursor should be shown over this block. */
|
/** Returns whether a hand cursor should be shown over this block. */
|
||||||
|
|||||||
Reference in New Issue
Block a user