mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
Fix use of GameProfile.equals()
This commit is contained in:
1 parent
8b37aa86ff
commit
be0a62b831
5 files changed
+37
-41
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user