From 12499bfba64e4b0d351feeccb1d1829884ec5062 Mon Sep 17 00:00:00 2001 From: Eclipse Date: Thu, 12 Dec 2024 10:53:46 +0000 Subject: [PATCH] Read priority option from mappings --- .../geyser/registry/mappings/versions/MappingsReader_v2.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/org/geysermc/geyser/registry/mappings/versions/MappingsReader_v2.java b/core/src/main/java/org/geysermc/geyser/registry/mappings/versions/MappingsReader_v2.java index fd4399b06..691e7e8a7 100644 --- a/core/src/main/java/org/geysermc/geyser/registry/mappings/versions/MappingsReader_v2.java +++ b/core/src/main/java/org/geysermc/geyser/registry/mappings/versions/MappingsReader_v2.java @@ -140,6 +140,10 @@ public class MappingsReader_v2 extends MappingsReader { readPredicates(builder, node.get("predicate")); + if (node.has("priority")) { + builder.priority(node.get("priority").asInt()); + } + builder.bedrockOptions(readBedrockOptions(node.get("bedrock_options"))); DataComponents components = new DataComponents(new HashMap<>()); // TODO faster map ?