mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
Rename inventory_sync to player_sync
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>
This commit is contained in:
1 parent
e455d17bb7
commit
8363c5f0ef
39 files changed
+331
-177
No files matched your search
@@ -0,0 +1,11 @@
|
||||
local inventories = {
|
||||
-- Armor must be before main or the sync will fail when the inventory
|
||||
-- bonus slots from the armor are in use.
|
||||
armor = defines.inventory.character_armor,
|
||||
main = defines.inventory.character_main,
|
||||
guns = defines.inventory.character_guns,
|
||||
ammo = defines.inventory.character_ammo,
|
||||
trash = defines.inventory.character_trash,
|
||||
}
|
||||
|
||||
return inventories
|
||||
Reference in new issue
Block a user