mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-02-07 10:41:36 +00:00
some fixes
This commit is contained in:
parent
5bb365dac1
commit
c077a28c6e
1 changed files with 3 additions and 1 deletions
|
@ -238,6 +238,7 @@ const factory = createLayer(id, () => {
|
|||
}
|
||||
}
|
||||
});
|
||||
window.internal = compInternalData
|
||||
|
||||
globalBus.on("update", async diff => {
|
||||
// will change soon:tm:
|
||||
|
@ -452,11 +453,12 @@ const factory = createLayer(id, () => {
|
|||
productionStock:
|
||||
type === "conveyor" ? undefined : structuredClone(factoryBaseData.productionStock)
|
||||
} as FactoryComponent;
|
||||
const isConveyor = compSelected.value === "conveyor";
|
||||
const isConveyor = type === "conveyor";
|
||||
compInternalData[y][x] = {
|
||||
type,
|
||||
packages: isConveyor ? [] : undefined,
|
||||
nextPackages: isConveyor ? [] : undefined,
|
||||
startingFrom: "right",
|
||||
canProduce: computed(() => {
|
||||
if (type === "conveyor") return true;
|
||||
if (!(factoryBaseData.canProduce?.value ?? true)) return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue