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

Merge pull request #316 from mordof/master

Fix tunnel incorrect delete bug
This commit is contained in:
tobspr
2020-06-27 08:54:49 +02:00
committed by GitHub

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,