mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23: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>
26 lines
758 B
Lua
26 lines
758 B
Lua
local compat = require("modules/clusterio/compat")
|
|
|
|
local keys = {
|
|
"character_crafting_speed_modifier",
|
|
"character_mining_speed_modifier",
|
|
"character_additional_mining_categories",
|
|
"character_running_speed_modifier",
|
|
"character_build_distance_bonus",
|
|
"character_item_drop_distance_bonus",
|
|
"character_reach_distance_bonus",
|
|
"character_resource_reach_distance_bonus",
|
|
"character_item_pickup_distance_bonus",
|
|
"character_loot_pickup_distance_bonus",
|
|
"character_inventory_slots_bonus",
|
|
"character_trash_slot_count_bonus",
|
|
"character_maximum_following_robot_count_bonus",
|
|
"character_health_bonus",
|
|
"allow_dispatching_robots",
|
|
}
|
|
|
|
if compat.version_le("1.1.110") then
|
|
keys[#keys + 1] = "character_personal_logistic_requests_enabled"
|
|
end
|
|
|
|
return keys
|