Merge pull request #316 from mordof/master

Fix tunnel incorrect delete bug
pull/320/head
tobspr 4 years ago committed by GitHub
commit 8e10864f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save