mirror of
https://github.com/tobspr-games/shapez.io.git
synced 2026-01-16 06:10:58 -08:00
Fix tunnel incorrect delete bug
This commit is contained in:
parent
42c569d91f
commit
a96b4a290d
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue