Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 00:23:03 +01:00
Fix player heads with a custom name (#1625)
Dieser Commit ist enthalten in:
Ursprung
2c0f3ec84d
Commit
2f294c9466
@ -39,7 +39,7 @@ public class PlayerHeadTranslator extends NbtItemStackTranslator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void translateToBedrock(GeyserSession session, CompoundTag itemTag, ItemEntry itemEntry) {
|
public void translateToBedrock(GeyserSession session, CompoundTag itemTag, ItemEntry itemEntry) {
|
||||||
if (!itemTag.contains("display") || !((CompoundTag) itemTag.get("display")).contains("name")) {
|
if (!itemTag.contains("display") || !((CompoundTag) itemTag.get("display")).contains("Name")) {
|
||||||
if (itemTag.contains("SkullOwner")) {
|
if (itemTag.contains("SkullOwner")) {
|
||||||
StringTag name;
|
StringTag name;
|
||||||
Tag skullOwner = itemTag.get("SkullOwner");
|
Tag skullOwner = itemTag.get("SkullOwner");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren