3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-07-30 17:18:10 +02: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.
Dieser Commit ist enthalten in:
Camotoy 2020-05-17 00:59:03 -04:00 committet von GitHub
Ursprung 95b7055c10
Commit 57717795a3
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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("_", " ");