From 57717795a378120a9cd26495badad1e05c3b4cab Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+DoctorMacc@users.noreply.github.com> Date: Sun, 17 May 2020 00:59:03 -0400 Subject: [PATCH] Add enchantment table book on chunk load (#568) Java's block entity ID is enchantment_table whereas Bedrock's is EnchantTable; this commit adds an exception to the block entity regex as such. --- .../java/org/geysermc/connector/utils/BlockEntityUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/connector/src/main/java/org/geysermc/connector/utils/BlockEntityUtils.java b/connector/src/main/java/org/geysermc/connector/utils/BlockEntityUtils.java index 9423a4f87..da32b12b0 100644 --- a/connector/src/main/java/org/geysermc/connector/utils/BlockEntityUtils.java +++ b/connector/src/main/java/org/geysermc/connector/utils/BlockEntityUtils.java @@ -22,6 +22,10 @@ public class BlockEntityUtils { if (id.contains("EnderChest")) return "EnderChest"; + if (id.contains("enchanting_table")) { + return "EnchantTable"; + } + id = id.toLowerCase() .replace("minecraft:", "") .replace("_", " ");