From a1706365b99f511beecd8a42a2213606553adf64 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Tue, 13 Jul 2021 21:14:22 -0400 Subject: [PATCH] Potted azaleas are now visible --- .../translators/world/block/BlockStateValues.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/translators/world/block/BlockStateValues.java b/connector/src/main/java/org/geysermc/connector/network/translators/world/block/BlockStateValues.java index daefae827..3be8752dd 100644 --- a/connector/src/main/java/org/geysermc/connector/network/translators/world/block/BlockStateValues.java +++ b/connector/src/main/java/org/geysermc/connector/network/translators/world/block/BlockStateValues.java @@ -93,8 +93,13 @@ public class BlockStateValues { return; } - if (javaId.contains("potted_") || javaId.contains("flower_pot")) { - FLOWER_POT_VALUES.put(javaBlockState, javaId.replace("potted_", "")); + if (javaId.startsWith("minecraft:potted_") || javaId.equals("minecraft:flower_pot")) { + String name = javaId.replace("potted_", ""); + if (name.contains("azalea")) { + // Exception to the rule + name = name.replace("_bush", ""); + } + FLOWER_POT_VALUES.put(javaBlockState, name); return; }