BepInEx Support

This commit is contained in:
Lachlan Leone
2022-11-05 14:52:31 +11:00
parent 1fc7fa477d
commit eb1713a569
8 changed files with 40 additions and 30 deletions
@@ -15,7 +15,6 @@ namespace MMOKitchen
{
PlayerManager playerManager = World.DefaultGameObjectInjectionWorld.GetExistingSystem<PlayerManager>();
FieldInfo finfo = typeof(PlayerManager).GetField("MaxPlayers", BindingFlags.Instance | BindingFlags.Public);
if (finfo == null) Mod.Log("finfo is null");
finfo.SetValue(playerManager, 12);
__instance.SourceTexture = ResourceUtils.LoadTextureFromFile(Path.Combine(Application.streamingAssetsPath, "NewFromTexture.png"));