forked from akanyan/mu3-mods
feat!: NaiveRating -> MoreProfileOptions
This commit is contained in:
16
Extras/MoreProfileOptions/MU3.User/patch_UserUtil.cs
Normal file
16
Extras/MoreProfileOptions/MU3.User/patch_UserUtil.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using MonoMod;
|
||||
using MU3.Mod;
|
||||
|
||||
namespace MU3.User;
|
||||
|
||||
[MonoModPatch("global::MU3.User.UserUtil")]
|
||||
public static class patch_UserUtil {
|
||||
public extern static float orig_toRatingFloat(int rating);
|
||||
public static float toRatingFloat(int rating) {
|
||||
if(NaiveRating.IsEnabled()) {
|
||||
return orig_toRatingFloat(NaiveRating.Get());
|
||||
} else {
|
||||
return orig_toRatingFloat(rating);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user