1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Fix crash regarding blueprints being copied wrong

This commit is contained in:
tobspr
2020-05-28 13:49:50 +02:00
parent f33473b77a
commit 2a4ee8e784
4 changed files with 34 additions and 12 deletions

View File

@@ -61,6 +61,7 @@ export class ItemAcceptorComponent extends Component {
slotsCopy.push({
pos: slot.pos.copy(),
directions: slot.directions.slice(),
filter: slot.filter,
});
}

View File

@@ -26,6 +26,9 @@ export class HUDEntityDebugger extends BaseHUDPart {
update() {
const mousePos = this.root.app.mousePosition;
if (!mousePos) {
return;
}
const worldPos = this.root.camera.screenToWorld(mousePos);
const worldTile = worldPos.toTileSpace();