1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00
onebeastchris
2025-10-03 17:30:48 +02:00
parent 26881466cb
commit 4297996d7a

View File

@@ -54,7 +54,8 @@ public record UtilMappings(List<Key> gameMasterBlocks, List<Key> dangerousBlockE
private static UtilMappings get() { private static UtilMappings get() {
if (loaded == null) { if (loaded == null) {
try (InputStream utilInput = GeyserImpl.getInstance().getBootstrap().getResourceOrThrow(INPUT)) { try (InputStream utilInput = GeyserImpl.getInstance().getBootstrap().getResourceOrThrow(INPUT)) {
JsonObject utilJson = JsonParser.parseReader(new InputStreamReader(utilInput)).getAsJsonObject(); //noinspection deprecation - 1.16.5 breaks otherwise
JsonObject utilJson = new JsonParser().parse(new InputStreamReader(utilInput)).getAsJsonObject();
List<Key> gameMasterBlocks = new ArrayList<>(); List<Key> gameMasterBlocks = new ArrayList<>();
List<Key> dangerousBlockEntities = new ArrayList<>(); List<Key> dangerousBlockEntities = new ArrayList<>();