Fix player heads with a custom name (#1625)

This commit is contained in:
Camotoy 2020-12-04 17:48:33 -05:00 committed by GitHub
parent 2c0f3ec84d
commit 2f294c9466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ public class PlayerHeadTranslator extends NbtItemStackTranslator {
@Override
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")) {
StringTag name;
Tag skullOwner = itemTag.get("SkullOwner");