fix client-side lua errors
This commit is contained in:
@@ -33,10 +33,4 @@ Hook.HookMethod("Barotrauma.Item", "Unequip", function (instance, p)
|
||||
if Hook.Call("itemUnequip", instance, p.character) == true then
|
||||
return false
|
||||
end
|
||||
end, Hook.HookMethodType.Before)
|
||||
|
||||
Hook.HookMethod("Barotrauma.Networking.GameServer", "AssignJobs", function (instance, a)
|
||||
if Hook.Call("jobAssigned", a) == true then
|
||||
return false
|
||||
end
|
||||
end, Hook.HookMethodType.After)
|
||||
end, Hook.HookMethodType.Before)
|
||||
@@ -3,7 +3,7 @@ local defaultLib = {}
|
||||
require("DefaultRegister")
|
||||
|
||||
local CreateStatic = function (typeName)
|
||||
return LuaUserData.CreateStatic("Barotrauma." .. typeName)
|
||||
return LuaUserData.CreateStatic("Barotrauma." .. typeName)
|
||||
end
|
||||
|
||||
defaultLib["WayPoint"] = CreateStatic("WayPoint")
|
||||
|
||||
@@ -5,7 +5,10 @@ end
|
||||
local AddCallMetaMember = LuaUserData.AddCallMetaMember
|
||||
|
||||
LuaUserData.RegisterType("System.TimeSpan")
|
||||
RegisterBarotrauma("Networking.GameServer")
|
||||
|
||||
if SERVER then
|
||||
RegisterBarotrauma("Networking.GameServer")
|
||||
end
|
||||
|
||||
RegisterBarotrauma("CauseOfDeathType")
|
||||
RegisterBarotrauma("Level+InterestingPosition")
|
||||
|
||||
Reference in New Issue
Block a user