mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-10 14:12:02 +00:00
Fix comparison
This commit is contained in:
parent
efbb77b82f
commit
b002c88e37
@ -37,27 +37,32 @@ const Cloud = {
|
||||
};
|
||||
const firstInfo = getSaveInfo(first);
|
||||
const secondInfo = getSaveInfo(second);
|
||||
if (
|
||||
firstInfo.realities === secondInfo.realities &&
|
||||
firstInfo.eternities.eq(secondInfo.eternities) &&
|
||||
firstInfo.infinities.eq(secondInfo.infinities)
|
||||
) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (firstInfo.realities > secondInfo.realities) {
|
||||
return first;
|
||||
}
|
||||
|
||||
if (firstInfo.realities < secondInfo.realities) {
|
||||
return second;
|
||||
}
|
||||
|
||||
if (firstInfo.eternities.gt(secondInfo.eternities)) {
|
||||
return first;
|
||||
}
|
||||
|
||||
if (firstInfo.eternities.lt(secondInfo.eternities)) {
|
||||
return second;
|
||||
}
|
||||
|
||||
if (firstInfo.infinities.gt(secondInfo.infinities)) {
|
||||
return first;
|
||||
}
|
||||
|
||||
return second;
|
||||
if (firstInfo.infinities.lt(secondInfo.infinities)) {
|
||||
return second;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
},
|
||||
|
||||
async loadMobile() {
|
||||
|
Loading…
Reference in New Issue
Block a user