mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix player heads with a custom name (#1625)
This commit is contained in:
parent
2c0f3ec84d
commit
2f294c9466
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue