diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-06-02 20:22:57 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 20:22:57 +1000 |
commit | 0876e2e7936cdaeee630a5f6d9477f6269e2b3fb (patch) | |
tree | 3df20607be7bd7a455c1aa5af25aaeebebf2a480 /src | |
parent | 68d024ef1a3791685c818e31ba51fc4956d48d59 (diff) | |
download | NotEnoughUpdates-0876e2e7936cdaeee630a5f6d9477f6269e2b3fb.tar.gz NotEnoughUpdates-0876e2e7936cdaeee630a5f6d9477f6269e2b3fb.tar.bz2 NotEnoughUpdates-0876e2e7936cdaeee630a5f6d9477f6269e2b3fb.zip |
Fixes frozen treasure crash (#714)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/FrozenTreasuresHighlighter.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/FrozenTreasuresHighlighter.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/FrozenTreasuresHighlighter.java index 1a541433..c3b49dc7 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/FrozenTreasuresHighlighter.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/FrozenTreasuresHighlighter.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 NotEnoughUpdates contributors + * Copyright (C) 2022-2023 NotEnoughUpdates contributors * * This file is part of NotEnoughUpdates. * @@ -50,6 +50,8 @@ public class FrozenTreasuresHighlighter extends GenericBlockHighlighter { add("http://textures.minecraft.net/texture/cb2b5d48e57577563aca31735519cb622219bc058b1f34648b67b8e71bc0fa"); // Rat add("http://textures.minecraft.net/texture/a8abb471db0ab78703011979dc8b40798a941f3a4dec3ec61cbeec2af8cffe8"); + // Mayor Jerry + add("http://textures.minecraft.net/texture/41b830eb4082acec836bc835e40a11282bb51193315f91184337e8d3555583"); }}; public static FrozenTreasuresHighlighter getInstance() {return INSTANCE;} @@ -91,7 +93,7 @@ public class FrozenTreasuresHighlighter extends GenericBlockHighlighter { .getString("Value"); // Decode and find texture url from the texture value - String trimmedJson = new String(Base64.getDecoder().decode(textureValue)).replace(" ", ""); + String trimmedJson = new String(Base64.getDecoder().decode(textureValue.replace(";", ""))).replace(" ", ""); String textureUrl = ""; |