mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Fix tunnel incorrect delete bug
This commit is contained in:
parent
42c569d91f
commit
a96b4a290d
@ -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…
Reference in New Issue
Block a user