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

Loading…
Cancel
Save