mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-13 10:11:50 +00:00
Fix building placer checking on wrong layer for acceptors and ejectors
This commit is contained in:
parent
0540a010a6
commit
b66bf5ac8a
@ -571,11 +571,13 @@ export class HUDBuildingPlacer extends HUDBuildingPlacerLogic {
|
|||||||
let isConnected = false;
|
let isConnected = false;
|
||||||
|
|
||||||
// Find all entities which are on that tile
|
// Find all entities which are on that tile
|
||||||
const sourceEntities = this.root.map.getLayersContentsMultipleXY(sourceTile.x, sourceTile.y);
|
const sourceEntity = this.root.map.getLayerContentXY(
|
||||||
|
sourceTile.x,
|
||||||
|
sourceTile.y,
|
||||||
|
this.fakeEntity.layer
|
||||||
|
);
|
||||||
|
|
||||||
// Check for every entity:
|
if (sourceEntity) {
|
||||||
for (let j = 0; j < sourceEntities.length; ++j) {
|
|
||||||
const sourceEntity = sourceEntities[j];
|
|
||||||
const sourceEjector = sourceEntity.components.ItemEjector;
|
const sourceEjector = sourceEntity.components.ItemEjector;
|
||||||
const sourceBeltComp = sourceEntity.components.Belt;
|
const sourceBeltComp = sourceEntity.components.Belt;
|
||||||
const sourceStaticComp = sourceEntity.components.StaticMapEntity;
|
const sourceStaticComp = sourceEntity.components.StaticMapEntity;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user