v0.1.3
Bug Fixes
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user