mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 03:59:45 +00:00
Save the owner NBT without gameprofile properties
This commit is contained in:
1 parent
5a901ffa36
commit
86e3ae87fd
10 files changed
+49
-27
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user