mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-07 18:14:01 +00:00
Make edge case where building is replaceable but unremovable an assertAlways.
This commit is contained in:
parent
c7e0703c45
commit
54653cf28e
@ -203,10 +203,10 @@ export class Blueprint {
|
|||||||
"Can not delete entity for blueprint"
|
"Can not delete entity for blueprint"
|
||||||
);
|
);
|
||||||
if (!root.logic.tryDeleteBuilding(contents)) {
|
if (!root.logic.tryDeleteBuilding(contents)) {
|
||||||
logger.error(
|
assertAlways(
|
||||||
|
false,
|
||||||
"Building has replaceable component but is also unremovable in blueprint"
|
"Building has replaceable component but is also unremovable in blueprint"
|
||||||
);
|
);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user