mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 15:04:52 +09:00
The plugin syncs more than inventories now (settings, appearance, recipe notifications), so name it for what it does. The package becomes @clusterio/plugin-player_sync and every inventory_sync identifier follows. A migration entrypoint renames the inventory_sync config fields, including load_plugin, and the inventory view permission. The plugin moves inventories.json in the database directory to player_sync.json and storage.inventory_sync in saves to storage.player_sync itself, and closes dialogs left open under the old GUI names on startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
622 B
Lua
31 lines
622 B
Lua
local compat = require("modules/clusterio/compat")
|
|
|
|
local keys = {
|
|
"show_alert_gui",
|
|
"show_controller_gui",
|
|
"show_crafting_queue",
|
|
"show_entity_info",
|
|
"show_entity_tooltip",
|
|
"show_hotkey_suggestions",
|
|
"show_map_view_options",
|
|
"show_minimap",
|
|
"show_quickbar",
|
|
"show_rail_block_visualisation",
|
|
"show_research_info",
|
|
"show_shortcut_bar",
|
|
"show_side_menu",
|
|
"show_tool_bar",
|
|
"update_entity_selection",
|
|
}
|
|
|
|
if compat.version_ge("2.0.22") then
|
|
keys[#keys + 1] = "show_surface_list"
|
|
end
|
|
|
|
if compat.version_ge("2.1.7") then
|
|
keys[#keys + 1] = "hide_tall_entities"
|
|
keys[#keys + 1] = "show_pins_gui"
|
|
end
|
|
|
|
return keys
|