mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 19:51:50 +00:00
Fixed uneeded underlays when no ejector/acceptor
This commit is contained in:
parent
34c405696c
commit
cc067d3d5a
@ -203,6 +203,8 @@ export class BeltUnderlaysSystem extends GameSystemWithFilter {
|
|||||||
enumInvertedDirections[underlayTile.direction]
|
enumInvertedDirections[underlayTile.direction]
|
||||||
);
|
);
|
||||||
if (!ejectorSlot) connectedTop = false;
|
if (!ejectorSlot) connectedTop = false;
|
||||||
|
} else {
|
||||||
|
connectedTop = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Figure out if there is anything connected at the bottom
|
// Figure out if there is anything connected at the bottom
|
||||||
@ -214,6 +216,8 @@ export class BeltUnderlaysSystem extends GameSystemWithFilter {
|
|||||||
if (acceptorComp) {
|
if (acceptorComp) {
|
||||||
const acceptorSlot = acceptorComp.findMatchingSlot(underlayTile.pos, underlayTile.direction);
|
const acceptorSlot = acceptorComp.findMatchingSlot(underlayTile.pos, underlayTile.direction);
|
||||||
if (!acceptorSlot) connectedBottom = false;
|
if (!acceptorSlot) connectedBottom = false;
|
||||||
|
} else {
|
||||||
|
connectedBottom = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
let flag = enumClippedBeltUnderlayType.none;
|
let flag = enumClippedBeltUnderlayType.none;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user