1
0
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:
tobspr
2020-12-09 10:41:49 +01:00
parent 22735591e9
commit aa2b64eae5
4 changed files with 60 additions and 5 deletions

View File

@@ -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) {