Fix use of GameProfile.equals()

This commit is contained in:
mezz committed 2014-11-28 16:58:53 -08:00
1 parent 8b37aa86ff
commit be0a62b831
5 files changed
+37 -41

No files matched your search

+3 -2
View File
@@ -15,6 +15,7 @@ import forestry.api.core.INBTTagable;
import forestry.api.mail.EnumAddressee;
import forestry.api.mail.IMailAddress;
import forestry.core.network.EntityNetData;
import forestry.core.utils.PlayerUtil;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTUtil;
@@ -77,7 +78,7 @@ public class MailAddress implements INBTTagable, IMailAddress {
@Override
public boolean isValid() {
return !gameProfile.equals(invalidGameProfile);
return !PlayerUtil.isSameGameProfile(gameProfile, invalidGameProfile);
}
@Override
@@ -108,7 +109,7 @@ public class MailAddress implements INBTTagable, IMailAddress {
return false;
MailAddress address = (MailAddress) o;
return address.gameProfile.equals(gameProfile);
return PlayerUtil.isSameGameProfile(address.gameProfile, gameProfile);
}
@Override