mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-03 05:26:45 +01:00
Fix NoClassDefFoundError in Java 9+
This commit is contained in:
parent
4eeadc6d21
commit
7a58840821
1 changed files with 1 additions and 2 deletions
|
@ -16,7 +16,6 @@ import org.geysermc.connector.network.translators.block.BlockEntry;
|
||||||
import org.geysermc.connector.network.translators.item.ItemEntry;
|
import org.geysermc.connector.network.translators.item.ItemEntry;
|
||||||
import org.geysermc.connector.world.GlobalBlockPalette;
|
import org.geysermc.connector.world.GlobalBlockPalette;
|
||||||
|
|
||||||
import javax.xml.bind.DatatypeConverter;
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
@ -129,7 +128,7 @@ public class Toolbox {
|
||||||
damage = (short)(int) map.get("damage");
|
damage = (short)(int) map.get("damage");
|
||||||
}
|
}
|
||||||
if (map.containsKey("nbt_b64")) {
|
if (map.containsKey("nbt_b64")) {
|
||||||
byte[] bytes = DatatypeConverter.parseBase64Binary((String) map.get("nbt_b64"));
|
byte[] bytes = Base64.getDecoder().decode((String) map.get("nbt_b64"));
|
||||||
ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
|
ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
|
||||||
try {
|
try {
|
||||||
com.nukkitx.nbt.tag.CompoundTag tag = (com.nukkitx.nbt.tag.CompoundTag) NbtUtils.createReaderLE(bais).readTag();
|
com.nukkitx.nbt.tag.CompoundTag tag = (com.nukkitx.nbt.tag.CompoundTag) NbtUtils.createReaderLE(bais).readTag();
|
||||||
|
|
Loading…
Reference in a new issue