mirror of
https://github.com/SoDOff-Project/sodoff-mmo.git
synced 2025-10-11 08:18:49 -07:00
bugfix userdata == "1" also mean "mounted"
This commit is contained in:
parent
3f49b895b9
commit
245fd2237a
@ -85,13 +85,13 @@ public class PlayerData {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (keyValPairs.TryGetValue("U", out string userdata)) {
|
if (keyValPairs.TryGetValue("U", out string userdata)) {
|
||||||
PetMounted = (userdata == "0");
|
PetMounted = (userdata == "0" || userdata == "1");
|
||||||
}
|
}
|
||||||
if (PetMounted &&
|
if (PetMounted &&
|
||||||
(GeometryType == PetGeometryType.Default && PetAge < PetAge.Teen
|
(GeometryType == PetGeometryType.Default && PetAge < PetAge.Teen
|
||||||
|| GeometryType == PetGeometryType.Terror && PetAge < PetAge.Titan)
|
|| GeometryType == PetGeometryType.Terror && PetAge < PetAge.Titan)
|
||||||
) {
|
) {
|
||||||
fp = Regex.Replace(value, "^U\\$0\\*", "U$-1*");
|
fp = Regex.Replace(value, "^U\\$[01]\\*", "U$-1*");
|
||||||
} else {
|
} else {
|
||||||
fp = value;
|
fp = value;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user