mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Fix items overlapping sometimes, fix constant signal being editable
This commit is contained in:
@@ -13,6 +13,10 @@ export class HUDConstantSignalEdit extends BaseHUDPart {
|
||||
* @param {enumMouseButton} button
|
||||
*/
|
||||
downPreHandler(pos, button) {
|
||||
if (this.root.currentLayer !== "wires") {
|
||||
return;
|
||||
}
|
||||
|
||||
const tile = this.root.camera.screenToWorld(pos).toTileSpace();
|
||||
const contents = this.root.map.getLayerContentXY(tile.x, tile.y, "wires");
|
||||
if (contents) {
|
||||
|
||||
Reference in New Issue
Block a user