Fix tunnel incorrect delete bug

This commit is contained in:
Mike Winger 2020-06-26 20:00:44 -06:00
parent 42c569d91f
commit a96b4a290d
1 changed files with 3 additions and 1 deletions

View File

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