mirror of
https://github.com/GeyserMC/Geyser.git
synced 2026-01-06 15:41:50 +00:00
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.
This commit is contained in:
@@ -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("_", " ");
|
||||
|
||||
Reference in New Issue
Block a user