1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00

Fix tunnel incorrect delete bug

This commit is contained in:
Mike Winger 2020-06-26 20:00:44 -06:00
parent 42c569d91f
commit a96b4a290d

View File

@ -88,10 +88,12 @@ export class UndergroundBeltSystem extends GameSystemWithFilter {
} }
const contentsUndergroundComp = contents.components.UndergroundBelt; const contentsUndergroundComp = contents.components.UndergroundBelt;
const contentsStaticComp = contents.components.StaticMapEntity;
if ( if (
contentsUndergroundComp && contentsUndergroundComp &&
contentsUndergroundComp.tier === undergroundComp.tier && contentsUndergroundComp.tier === undergroundComp.tier &&
contentsUndergroundComp.mode === enumUndergroundBeltMode.sender contentsUndergroundComp.mode === enumUndergroundBeltMode.sender &&
enumAngleToDirection[contentsStaticComp.rotation] === direction
) { ) {
matchingEntrance = { matchingEntrance = {
entity: contents, entity: contents,