Skip to content

Commit

Permalink
ok, let's try that
Browse files Browse the repository at this point in the history
  • Loading branch information
AltronMaxX committed Dec 24, 2023
1 parent 281fc97 commit 1caa718
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ public static void init() {
LinkedTreeMap.class
);

blocks.forEach((modernId, protocolId) -> MODERN_BLOCK_STRING_MAP.put(modernId, Short.valueOf(protocolId)));
blocks.forEach((modernId, protocolId) -> {
if (Objects.equals(modernId, "minecraft:short_grass")) {
MODERN_BLOCK_STRING_MAP.put(modernId, Short.valueOf(protocolId));
MODERN_BLOCK_STRING_MAP.put("minecraft:grass", Short.valueOf(protocolId));
} else {
MODERN_BLOCK_STRING_MAP.put(modernId, Short.valueOf(protocolId));
}
});

LinkedTreeMap<String, LinkedTreeMap<String, String>> blockVersionMapping = GSON.fromJson(
new InputStreamReader(
Expand Down

0 comments on commit 1caa718

Please sign in to comment.