feat: sync full smelting state to master for persistence

This commit is contained in:
MayaTheShy
2026-03-22 22:31:31 -04:00
parent 8b8279878a
commit bdc9b3f291

View File

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