mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Add setting to disable smart tunnels
This commit is contained in:
@@ -58,6 +58,11 @@ export class UndergroundBeltSystem extends GameSystemWithFilter {
|
||||
* @param {Entity} entity
|
||||
*/
|
||||
onEntityPlaced(entity) {
|
||||
if (!this.root.app.settings.getAllSettings().enableTunnelSmartplace) {
|
||||
// Smart-place disabled
|
||||
return;
|
||||
}
|
||||
|
||||
const undergroundComp = entity.components.UndergroundBelt;
|
||||
if (undergroundComp && undergroundComp.mode === enumUndergroundBeltMode.receiver) {
|
||||
const staticComp = entity.components.StaticMapEntity;
|
||||
|
||||
Reference in New Issue
Block a user