Bug Fixes
This commit is contained in:
Lachlan Leone
2022-11-15 16:07:19 +11:00
parent eea847fd6d
commit c81ae1fd15
5 changed files with 37 additions and 10 deletions
+3
View File
@@ -30,6 +30,9 @@
<Reference Include="KitchenMode">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\KitchenMode.dll</HintPath>
</Reference>
<Reference Include="Discord">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\Discord.dll</HintPath>
</Reference>
<Reference Include="MelonLoader">
<HintPath>$(PlateUpGameFolder)\MelonLoader\MelonLoader.dll</HintPath>
</Reference>
+2 -2
View File
@@ -8,14 +8,14 @@ using MelonLoader;
#endif
#if MelonLoader
[assembly: MelonInfo(typeof(MMOKitchen.Mod), "MMO Kitchen", "0.1.2", "StarFluxGames")]
[assembly: MelonInfo(typeof(MMOKitchen.Mod), "MMO Kitchen", "0.1.3", "StarFluxGames")]
[assembly: MelonGame("It's Happening", "PlateUp")]
#endif
namespace MMOKitchen
{
#if BepInEx
[BepInProcess("PlateUp.exe")]
[BepInPlugin("starfluxgames.mmokitchen", "MMO Kitchen", "0.1.2")]
[BepInPlugin("starfluxgames.mmokitchen", "MMO Kitchen", "0.1.3")]
#endif
public class Mod : BaseMod
{
+8 -8
View File
@@ -25,14 +25,14 @@ namespace MMOKitchen
new Vector3(9f, 0f, 2f),
new Vector3(9f, 0f, -3f),
new Vector3(9f, 0f, -6f),
new Vector3(13f, 0f, 5f),
new Vector3(13f, 0f, 2f),
new Vector3(13f, 0f, -3f),
new Vector3(13f, 0f, -6f),
new Vector3(-11f, 0f, 5f),
new Vector3(-11f, 0f, 2f),
new Vector3(-11f, 0f, -3f),
new Vector3(-11f, 0f, -6f)
new Vector3(14f, 0f, 5f),
new Vector3(14f, 0f, 2f),
new Vector3(14f, 0f, -3f),
new Vector3(14f, 0f, -6f),
new Vector3(-12f, 0f, 5f),
new Vector3(-12f, 0f, 2f),
new Vector3(-12f, 0f, -3f),
new Vector3(-12f, 0f, -6f)
};
for (int i = 0; i < 12; i++)
{
+1
View File
@@ -27,6 +27,7 @@ namespace MMOKitchen
entity = (Entity)create.Invoke(__instance, new object[]{GameData.Main.Get<Appliance>(AssetReference.LoadoutPedestal), new Vector3(-8.5f, 0f, -4f), Vector3.right});
EntityUtils.GetEntityManager().AddComponent<CItemPedestal>(entity);
entity = (Entity)create.Invoke(__instance, new object[]{GameData.Main.Get<Appliance>(AssetReference.LoadoutPedestal), new Vector3(-9.5f, 0f, -4f), Vector3.right});
EntityUtils.GetEntityManager().AddComponent<CItemPedestal>(entity);
bool isEmpty = ((EntityQuery)crates.GetValue(__instance)).IsEmpty;
if (!isEmpty)
{
@@ -0,0 +1,23 @@
using HarmonyLib;
using Discord;
using Kitchen.NetworkSupport;
using System.Collections.Generic;
using System.Reflection.Emit;
namespace MMOKitchen
{
[HarmonyPatch(typeof(DiscordPlatform))]
[HarmonyPatch("CreateNewLobby")]
public static class DiscordPlatform_Patch
{
static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
var codes = new List<CodeInstruction>(instructions);
for (var i = 0; i < codes.Count; i++)
if (codes[i].opcode == OpCodes.Ldc_I4_4)
codes[i].opcode = OpCodes.Ldc_I4_8;
return codes;
}
}
}