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 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)