v0.3.0
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using HarmonyLib;
|
||||
using Kitchen;
|
||||
using KitchenLib.Utils;
|
||||
using System.Reflection;
|
||||
|
||||
namespace MMOKitchen.Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(PlayerManager), "GetLeastUnusedIndex")]
|
||||
public class PlayerManagerPatch
|
||||
{
|
||||
static void Prefix(PlayerManager __instance)
|
||||
{
|
||||
FieldInfo info = ReflectionUtils.GetField<PlayerManager>("MaxPlayers");
|
||||
info.SetValue(__instance, Mod.MaxPlayers);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user