diff --git a/src/gui/html/elements/loot-plugin-editor.html b/src/gui/html/elements/loot-plugin-editor.html
index d136bc15..b9064c5f 100644
--- a/src/gui/html/elements/loot-plugin-editor.html
+++ b/src/gui/html/elements/loot-plugin-editor.html
@@ -288,9 +288,11 @@ loot-editor-close
changed, so record both. */
if (this.$.priorityValue.value !== oldData.priority) {
plugin.priority = this.$.priorityValue.value;
+ plugin.userlist.priority = this.$.priorityValue.value;
}
if (this.$.globalPriorityValue.value !== oldData.globalPriority) {
plugin.globalPriority = this.$.globalPriorityValue.value;
+ plugin.userlist.globalPriority = this.$.globalPriority.value;
}
plugin.userlist.enabled = this.$.enableEdits.checked;
diff --git a/src/gui/query/get_game_data_query.h b/src/gui/query/get_game_data_query.h
index 94a9e092..3ece0957 100644
--- a/src/gui/query/get_game_data_query.h
+++ b/src/gui/query/get_game_data_query.h
@@ -136,6 +136,8 @@ private:
YAML::Node node;
node["enabled"] = metadata.Enabled();
+ node["priority"] = metadata.LocalPriority().getValue();
+ node["globalPriority"] = metadata.GlobalPriority().getValue();
node["after"] = metadata.LoadAfter();
node["req"] = metadata.Reqs();
node["inc"] = metadata.Incs();