mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-07 18:14:01 +00:00
Fix tunnels entrances connecting to exits sometimes when they shouldn't
This commit is contained in:
parent
ef8d520d94
commit
756bcdb473
@ -14,6 +14,7 @@ export const CHANGELOG = [
|
|||||||
"Updated the soundtrack again, it is now 20 minutes in total!",
|
"Updated the soundtrack again, it is now 20 minutes in total!",
|
||||||
"Updated and added new translations (Thanks to all contributors!)",
|
"Updated and added new translations (Thanks to all contributors!)",
|
||||||
"Show confirmation when cutting area which is too expensive to get pasted again (by isaisstillalive)",
|
"Show confirmation when cutting area which is too expensive to get pasted again (by isaisstillalive)",
|
||||||
|
"Fix tunnels entrances connecting to exits sometimes when they shouldn't",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -309,17 +309,17 @@ export class UndergroundBeltSystem extends GameSystemWithFilter {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (receiverUndergroundComp.mode !== enumUndergroundBeltMode.receiver) {
|
|
||||||
// Not a receiver
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
const receiverStaticComp = potentialReceiver.components.StaticMapEntity;
|
const receiverStaticComp = potentialReceiver.components.StaticMapEntity;
|
||||||
if (receiverStaticComp.rotation !== targetRotation) {
|
if (receiverStaticComp.rotation !== targetRotation) {
|
||||||
// Wrong rotation
|
// Wrong rotation
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (receiverUndergroundComp.mode !== enumUndergroundBeltMode.receiver) {
|
||||||
|
// Not a receiver, but a sender -> Abort to make sure we don't deliver double
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return { entity: potentialReceiver, distance: searchOffset };
|
return { entity: potentialReceiver, distance: searchOffset };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user