feat: sync full smelting state to master for persistence
This commit is contained in:
@@ -237,9 +237,12 @@ function ops.orderItem(itemName, amount)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ops.saveDisabledRecipes()
|
function ops.saveDisabledRecipes()
|
||||||
-- Client doesn't persist locally; the master handles persistence.
|
-- Sync full smelting state to master so it persists and applies.
|
||||||
-- We forward the current disabledRecipes state to master via
|
sendToMaster({
|
||||||
-- toggle/enable/disable commands (already handled by display.lua events).
|
type = "sync_disabled_recipes",
|
||||||
|
disabledRecipes = state.disabledRecipes,
|
||||||
|
smeltingPaused = state.smeltingPaused,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
function ops.craftItem(recipeIdx)
|
function ops.craftItem(recipeIdx)
|
||||||
|
|||||||
Reference in New Issue
Block a user