Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 08:30:12 +01:00
Fix enchantments on books Bedrock -> Java (#3713)
Dieser Commit ist enthalten in:
Ursprung
8a25afbc8f
Commit
baae46822e
@ -197,10 +197,14 @@ public class Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!enchantments.isEmpty()) {
|
if (!enchantments.isEmpty()) {
|
||||||
|
if ((this instanceof EnchantedBookItem)) {
|
||||||
|
tag.put(new ListTag("StoredEnchantments", enchantments));
|
||||||
|
} else {
|
||||||
tag.put(new ListTag("Enchantments", enchantments));
|
tag.put(new ListTag("Enchantments", enchantments));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected final CompoundTag remapEnchantment(GeyserSession session, CompoundTag tag, CompoundTag rootTag) {
|
protected final CompoundTag remapEnchantment(GeyserSession session, CompoundTag tag, CompoundTag rootTag) {
|
||||||
Tag javaEnchId = tag.get("id");
|
Tag javaEnchId = tag.get("id");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren