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
commit 8e10864f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,