diff --git a/WebHostLib/templates/playerOptions/macros.html b/WebHostLib/templates/playerOptions/macros.html index 64964682fe5..c4d97255d85 100644 --- a/WebHostLib/templates/playerOptions/macros.html +++ b/WebHostLib/templates/playerOptions/macros.html @@ -114,7 +114,7 @@ {% macro ItemDict(option_name, option, world) %} {{ OptionTitle(option_name, option) }}
- {% for item_name in world.item_names|sort %} + {% for item_name in (option.valid_keys|sort if (option.valid_keys|length > 0) else world.item_names|sort) %}
@@ -149,7 +149,7 @@ {% if world.location_name_groups.keys()|length > 1 %}
 
{% endif %} - {% for location_name in world.location_names|sort %} + {% for location_name in (option.valid_keys|sort if (option.valid_keys|length > 0) else world.location_names|sort) %}
@@ -172,7 +172,7 @@ {% if world.item_name_groups.keys()|length > 1 %}
 
{% endif %} - {% for item_name in world.item_names|sort %} + {% for item_name in (option.valid_keys|sort if (option.valid_keys|length > 0) else world.item_names|sort) %}
diff --git a/WebHostLib/templates/weightedOptions/macros.html b/WebHostLib/templates/weightedOptions/macros.html index e7caab93c0e..91474d76960 100644 --- a/WebHostLib/templates/weightedOptions/macros.html +++ b/WebHostLib/templates/weightedOptions/macros.html @@ -105,7 +105,7 @@ {% macro ItemDict(option_name, option, world) %}
- {% for item_name in world.item_names|sort %} + {% for item_name in (option.valid_keys|sort if (option.valid_keys|length > 0) else world.item_names|sort) %}
1 %}
 
{% endif %} - {% for location_name in world.location_names|sort %} + {% for location_name in (option.valid_keys|sort if (option.valid_keys|length > 0) else world.location_names|sort) %}
@@ -172,7 +172,7 @@ {% if world.item_name_groups.keys()|length > 1 %}
 
{% endif %} - {% for item_name in world.item_names|sort %} + {% for item_name in (option.valid_keys|sort if (option.valid_keys|length > 0) else world.item_names|sort) %}