Skip to content

Commit

Permalink
Merge pull request #139 from dennis/bugfix-generate_json
Browse files Browse the repository at this point in the history
Bugfix: generate_json() must not be static
  • Loading branch information
dennis committed Sep 28, 2021
2 parents b737bcf + 68c9fc5 commit 140adfb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Components/Lua/Lua/LuaInstanceThread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
using Slipstream.Shared.Helpers.StrongParameters;
using Slipstream.Shared.Lua;

using Swan.Formatters;

using System;
using System.Collections.Generic;
using System.Diagnostics;
Expand Down Expand Up @@ -312,7 +310,7 @@ public void wait(string name, LuaFunction func, float duration)
}

[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "This is expose in Lua, so we want to keep that naming style")]
public static string generate_json(LuaTable luaTable)
public string generate_json(LuaTable luaTable)
{
return JsonConvert.SerializeObject(Parameters.From(luaTable));
}
Expand Down

0 comments on commit 140adfb

Please sign in to comment.