Skip to content

Commit

Permalink
Support 1.21.1 (New) (#450)
Browse files Browse the repository at this point in the history
* Support 1.21.1

* Update actions/upload-artifact to v4

* Attempt to fix CI

* Adding some logging to debug CI

* Adding more logging

* Adjusted logs

* More logging changes

* Update modelsBuilder.js for logging

* Check if face.texture is a texture reference even in absence of a # prefix.

* Formatting fix.

* Update CI to Java 21

---------

Co-authored-by: Icyadam14 <[email protected]>
Co-authored-by: Romain Beaumont <[email protected]>
Co-authored-by: hunter <[email protected]>
Co-authored-by: Adam Kahl <[email protected]>
  • Loading branch information
5 people authored Jan 21, 2025
1 parent c2c89a1 commit 859f8d9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

strategy:
matrix:
mcVersion: ['1.8.8', '1.9.4', '1.10.2', '1.11.2', '1.12.2', '1.13.2', '1.14.4', '1.15.2', '1.16.1', '1.16.4', '1.17.1', '1.18.1', '1.19', '1.20.1']
mcVersion: ['1.8.8', '1.9.4', '1.10.2', '1.11.2', '1.12.2', '1.13.2', '1.14.4', '1.15.2', '1.16.1', '1.16.4', '1.17.1', '1.18.1', '1.19', '1.20.1', '1.21.1']
fail-fast: false

steps:
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Setup Java JDK
uses: actions/setup-java@v1
with:
java-version: 17
java-version: 21
java-package: jre
- name: Install xi
run: sudo apt-get install -y libxi-dev libglu1-mesa-dev
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Web based viewer for servers and bots

[<img src="https://prismarinejs.github.io/prismarine-viewer/test_1.18.1.png" alt="viewer" width="300">](https://prismarinejs.github.io/prismarine-viewer/)

Supports versions 1.8.8, 1.9.4, 1.10.2, 1.11.2, 1.12.2, 1.13.2, 1.14.4, 1.15.2, 1.16.1, 1.16.4, 1.17.1, 1.18.1, 1.19, 1.20.1.
Supports versions 1.8.8, 1.9.4, 1.10.2, 1.11.2, 1.12.2, 1.13.2, 1.14.4, 1.15.2, 1.16.1, 1.16.4, 1.17.1, 1.18.1, 1.19, 1.20.1, 1.21.1.

## Install

Expand Down
5 changes: 5 additions & 0 deletions viewer/lib/modelsBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ function prepareModel (model, texturesJson) {

if (face.texture.charAt(0) === '#') {
face.texture = JSON.parse(JSON.stringify(model.textures[face.texture.substr(1)]))
} else if (
!(cleanupBlockName(face.texture) in texturesJson) &&
face.texture in model.textures
) {
face.texture = JSON.parse(JSON.stringify(model.textures[face.texture]))
} else {
let name = face.texture
name = cleanupBlockName(name)
Expand Down
2 changes: 1 addition & 1 deletion viewer/lib/version.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const supportedVersions = ['1.8.8', '1.9.4', '1.10.2', '1.11.2', '1.12.2', '1.13.2', '1.14.4', '1.15.2', '1.16.1', '1.16.4', '1.17.1', '1.18.1', '1.19', '1.20.1']
const supportedVersions = ['1.8.8', '1.9.4', '1.10.2', '1.11.2', '1.12.2', '1.13.2', '1.14.4', '1.15.2', '1.16.1', '1.16.4', '1.17.1', '1.18.1', '1.19', '1.20.1', '1.21.1']

const lastOfMajor = {}
for (const version of supportedVersions) {
Expand Down

0 comments on commit 859f8d9

Please sign in to comment.