fix RequestPostHTTP compatibility
This commit is contained in:
@@ -8,13 +8,9 @@ end)
|
|||||||
|
|
||||||
local networking = LuaUserData.RegisterType("Barotrauma.LuaCsNetworking")
|
local networking = LuaUserData.RegisterType("Barotrauma.LuaCsNetworking")
|
||||||
|
|
||||||
LuaUserData.AddMethod(networking, "RequestGetHTTP", function (url, callback, data, contentType)
|
LuaUserData.AddMethod(networking, "RequestGetHTTP", Networking.HttpGet)
|
||||||
Networking.HttpGet(url, callback, data, contentType)
|
|
||||||
end)
|
|
||||||
|
|
||||||
LuaUserData.AddMethod(networking, "RequestPostHTTP", function (url, callback, data, contentType)
|
LuaUserData.AddMethod(networking, "RequestPostHTTP", Networking.HttpPost)
|
||||||
Networking.HttpPost(url, callback, data, contentType)
|
|
||||||
end)
|
|
||||||
|
|
||||||
compatibilityLib.CreateVector2 = Vector2.__new
|
compatibilityLib.CreateVector2 = Vector2.__new
|
||||||
compatibilityLib.CreateVector3 = Vector3.__new
|
compatibilityLib.CreateVector3 = Vector3.__new
|
||||||
|
|||||||
Reference in New Issue
Block a user