diff --git a/Barotrauma/BarotraumaClient/LinuxClient.csproj b/Barotrauma/BarotraumaClient/LinuxClient.csproj
index d6fe971cb..85440866b 100644
--- a/Barotrauma/BarotraumaClient/LinuxClient.csproj
+++ b/Barotrauma/BarotraumaClient/LinuxClient.csproj
@@ -120,7 +120,7 @@
-
+
diff --git a/Barotrauma/BarotraumaClient/MacClient.csproj b/Barotrauma/BarotraumaClient/MacClient.csproj
index 3701c2412..fedcfcf5d 100644
--- a/Barotrauma/BarotraumaClient/MacClient.csproj
+++ b/Barotrauma/BarotraumaClient/MacClient.csproj
@@ -121,7 +121,7 @@
-
+
diff --git a/Barotrauma/BarotraumaClient/WindowsClient.csproj b/Barotrauma/BarotraumaClient/WindowsClient.csproj
index 720cab513..c66a7bd2d 100644
--- a/Barotrauma/BarotraumaClient/WindowsClient.csproj
+++ b/Barotrauma/BarotraumaClient/WindowsClient.csproj
@@ -124,7 +124,7 @@
-
+
diff --git a/Barotrauma/BarotraumaServer/LinuxServer.csproj b/Barotrauma/BarotraumaServer/LinuxServer.csproj
index a8be30f26..4233bf615 100644
--- a/Barotrauma/BarotraumaServer/LinuxServer.csproj
+++ b/Barotrauma/BarotraumaServer/LinuxServer.csproj
@@ -74,7 +74,7 @@
-
+
diff --git a/Barotrauma/BarotraumaServer/MacServer.csproj b/Barotrauma/BarotraumaServer/MacServer.csproj
index 480cc3e3d..4aed46e5e 100644
--- a/Barotrauma/BarotraumaServer/MacServer.csproj
+++ b/Barotrauma/BarotraumaServer/MacServer.csproj
@@ -81,7 +81,7 @@
-
+
diff --git a/Barotrauma/BarotraumaServer/WindowsServer.csproj b/Barotrauma/BarotraumaServer/WindowsServer.csproj
index c2453e41d..ee5f619ca 100644
--- a/Barotrauma/BarotraumaServer/WindowsServer.csproj
+++ b/Barotrauma/BarotraumaServer/WindowsServer.csproj
@@ -82,7 +82,7 @@
-
+
diff --git a/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaClasses.cs b/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaClasses.cs
index 699b85b84..365e95260 100644
--- a/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaClasses.cs
+++ b/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaClasses.cs
@@ -827,7 +827,7 @@ namespace Barotrauma
Before, After
}
- static void _hookLuaPatch(MethodBase __originalMethod, object[] __params, object __instance, out LuaResult result, HookMethodType hookMethodType)
+ static void _hookLuaPatch(MethodBase __originalMethod, object[] __args, object __instance, out LuaResult result, HookMethodType hookMethodType)
{
// Although it works correctly, the performance is low
result = new LuaResult(null);
@@ -841,7 +841,7 @@ namespace Barotrauma
var ptable = new Dictionary();
for (int i = 0; i < @params.Length; i++)
{
- ptable.Add(@params[i].Name, __params[i]);
+ ptable.Add(@params[i].Name, __args[i]);
}
@@ -861,16 +861,16 @@ namespace Barotrauma
}
}
- static bool HookLuaPatchPrefix(MethodBase __originalMethod, object[] __params, object __instance)
+ static bool HookLuaPatchPrefix(MethodBase __originalMethod, object[] __args, object __instance)
{
- _hookLuaPatch(__originalMethod, __params, __instance, out LuaResult result, HookMethodType.Before);
+ _hookLuaPatch(__originalMethod, __args, __instance, out LuaResult result, HookMethodType.Before);
return result.IsNull();
}
- static bool HookLuaPatchRetPrefix(MethodBase __originalMethod, object[] __params, ref object __result, object __instance)
+ static bool HookLuaPatchRetPrefix(MethodBase __originalMethod, object[] __args, ref object __result, object __instance)
{
- _hookLuaPatch(__originalMethod, __params, __instance, out LuaResult result, HookMethodType.Before);
+ _hookLuaPatch(__originalMethod, __args, __instance, out LuaResult result, HookMethodType.Before);
if (!result.IsNull())
{
diff --git a/Libraries/0Harmony.dll b/Libraries/0Harmony.dll
index 730fdb783..953e556d6 100644
Binary files a/Libraries/0Harmony.dll and b/Libraries/0Harmony.dll differ