1
0
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:
DJ1TJOO 2021-11-26 18:58:53 +01:00
parent 34c405696c
commit cc067d3d5a

View File

@ -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;