Skip to content

Commit

Permalink
update to 1.21.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsjo committed Dec 3, 2024
1 parent 475ce18 commit db09076
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
crossorigin="" as="style" onload="this.onload=null;this.rel='stylesheet'" />
<!--<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"-->

<link rel="preload" as="fetch" href="/minecraft_overworld_1_20.snowcapped.json" crossorigin="" />
<link rel="preload" as="fetch" href="/minecraft_overworld_1_21_4.snowcapped.json" crossorigin="" />
<link rel="apple-touch-icon" href="/icons/icon_192.png">
<script
src="https://beamanalytics.b-cdn.net/beam.min.js"
Expand All @@ -40,9 +40,9 @@
<div class="button" id="newButton"><img alt="New" label="New" src="images/blank-file.svg" />
<div class="dropdown">
<div class="dropdown_entry" id="loadEmptyButton"><img alt="New" src="images/blank-file.svg" /><p>Empty</p></div>
<div class="dropdown_entry" id="loadVanilla119Button"><img alt="New" src="images/blank-file.svg" /><p>Vanilla Overworld (1.19)</p></div>
<div class="dropdown_entry" id="loadVanilla120Button"><img alt="New" src="images/blank-file.svg" /><p>Vanilla Overworld (1.20+)</p></div>
<div class="dropdown_entry" id="loadVanilla121WinterDropButton"><img alt="New" src="images/blank-file.svg" /><p>Vanilla Overworld (1.21.2 Winter Drop)</p></div>
<div class="dropdown_entry" id="loadVanilla119Button"><img alt="New" src="images/blank-file.svg" /><p>Vanilla Overworld (1.19.x)</p></div>
<div class="dropdown_entry" id="loadVanilla120Button"><img alt="New" src="images/blank-file.svg" /><p>Vanilla Overworld (1.20 - 1.21.3)</p></div>
<div class="dropdown_entry" id="loadVanilla1214Button"><img alt="New" src="images/blank-file.svg" /><p>Vanilla Overworld (1.21.4+)</p></div>
</div>
</div>
<div class="button" id="openButton" title="Open"><img alt="Open" src="images/open-file-folder.svg" /></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6977,6 +6977,6 @@
]
}
},
"datapackVersion": 57,
"datapackVersion": 61,
"version": 6
}
4 changes: 2 additions & 2 deletions src/SharedConstants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const DATA_VERSION = 6
export const DEFAULT_DATAPACK_FORMAT = 57
export const DEFAULT_DATAPACK_FORMAT = 61
export const MIN_DATAPACK_FORMAT = 10
export const MAX_DATAPACK_FORMAT = 57
export const MAX_DATAPACK_FORMAT = 61
8 changes: 4 additions & 4 deletions src/main/UI/MenuManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DataFixer } from "../BuilderData/DataFixer"
export class MenuManager {
private static loadVanilla119Button: HTMLElement
private static loadVanilla120Button: HTMLElement
private static loadVanilla121WinterDropButton: HTMLElement
private static loadVanilla1214Button: HTMLElement
private static loadEmptyButton: HTMLElement
private static openButton: HTMLElement
private static saveButton: HTMLElement
Expand Down Expand Up @@ -63,7 +63,7 @@ export class MenuManager {
static createClickHandlers() {
this.loadVanilla119Button = document.getElementById('loadVanilla119Button')
this.loadVanilla120Button = document.getElementById('loadVanilla120Button')
this.loadVanilla121WinterDropButton = document.getElementById('loadVanilla121WinterDropButton')
this.loadVanilla1214Button = document.getElementById('loadVanilla1214Button')
this.loadEmptyButton = document.getElementById('loadEmptyButton')
this.openButton = document.getElementById('openButton')
this.saveButton = document.getElementById('saveButton')
Expand All @@ -81,8 +81,8 @@ export class MenuManager {
this.loadVanilla('minecraft_overworld_1_20.snowcapped.json')
}

this.loadVanilla121WinterDropButton.onclick = (evt: Event) => {
this.loadVanilla('minecraft_overworld_1_21_winter_drop.snowcapped.json')
this.loadVanilla1214Button.onclick = (evt: Event) => {
this.loadVanilla('minecraft_overworld_1_21_4.snowcapped.json')
}

this.loadEmptyButton.onclick = async (evt: Event) => {
Expand Down
2 changes: 1 addition & 1 deletion src/main/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for (let i = 0; i < close_elements.length; i++) {
const builder = new BiomeBuilder()
UI.create(builder)

fetch('minecraft_overworld_1_20.snowcapped.json').then(r => r.text()).then(jsonString => {
fetch('minecraft_overworld_1_21_4.snowcapped.json').then(r => r.text()).then(jsonString => {
builder.loadJSON(JSON.parse(jsonString));
UI.getInstance().refresh({
biome: {},
Expand Down

0 comments on commit db09076

Please sign in to comment.