Skip to content

Commit a8f341c

Browse files
Fix v7.47.2 not being listed correctly
1 parent f2b044e commit a8f341c

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

_layouts/download-list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{%- continue -%}
2727
{%- endunless -%}
2828
{%- else -%}
29-
{%- unless update.minecraft-versions -%}
29+
{%- unless update.minecraft-versions or update.snapshots -%}
3030
{%- continue -%}
3131
{%- endunless -%}
3232
{%- endif -%}

download/index.html

+9-7
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,22 @@
110110
<div class="padding20 no-padding-left no-padding-right">
111111
<div class="container">
112112

113-
{%- assign latest_update = site.updates | where_exp: "item", "item.minecraft-versions" | last -%}
113+
{%- assign latest_update = site.updates | where_exp: "item", "item.minecraft-versions or item.snapshots" | last -%}
114114
{%- assign upcoming_version = "" -%}
115115
{%- assign latest_rc = "" -%}
116116
{%- for snapshot in latest_update.snapshots -%}
117117
{%- if snapshot contains "rc" -%}
118118
{%- assign rc_version = snapshot | split: "-rc" | first -%}
119119
{%- assign latest_rc = snapshot -%}
120120
{%- assign has_full_version = false -%}
121-
{%- for mcversion in latest_update.minecraft-versions -%}
122-
{%- if mcversion == rc_version -%}
123-
{%- assign has_full_version = true -%}
124-
{%- break -%}
125-
{%- endif -%}
126-
{%- endfor -%}
121+
{%- if latest_update.minecraft-versions -%}
122+
{%- for mcversion in latest_update.minecraft-versions -%}
123+
{%- if mcversion == rc_version -%}
124+
{%- assign has_full_version = true -%}
125+
{%- break -%}
126+
{%- endif -%}
127+
{%- endfor -%}
128+
{%- endif -%}
127129
{%- unless has_full_version -%}
128130
{%- assign upcoming_version = rc_version -%}
129131
{%- break -%}

0 commit comments

Comments
 (0)