Save the owner NBT without gameprofile properties

This commit is contained in:
mezz committed 2016-03-03 22:01:33 -08:00
1 parent 5a901ffa36
commit 86e3ae87fd
10 files changed
+49 -27

No files matched your search

+2 -3
View File
@@ -15,7 +15,6 @@ import java.util.Locale;
import java.util.UUID;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTUtil;
import com.mojang.authlib.GameProfile;
@@ -69,7 +68,7 @@ public class MailAddress implements INbtWritable, IMailAddress {
gameProfile = invalidGameProfile;
} else if (nbt.hasKey("profile")) {
NBTTagCompound profileTag = nbt.getCompoundTag("profile");
gameProfile = NBTUtil.readGameProfileFromNBT(profileTag);
gameProfile = PlayerUtil.readGameProfileFromNBT(profileTag);
}
this.type = type;
@@ -141,7 +140,7 @@ public class MailAddress implements INbtWritable, IMailAddress {
if (gameProfile != null) {
NBTTagCompound profileNbt = new NBTTagCompound();
NBTUtil.writeGameProfile(profileNbt, gameProfile);
PlayerUtil.writeGameProfile(profileNbt, gameProfile);
nbttagcompound.setTag("profile", profileNbt);
}
}