Skip to content

Commit

Permalink
Fix startup error (#3182)
Browse files Browse the repository at this point in the history
  • Loading branch information
wrefgtzweve authored Nov 17, 2024
1 parent 01fa17c commit 43976e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/entities/gmod_wire_expression2/core/custom/prop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1146,16 +1146,15 @@ e2function void entity:ragdollFreeze(isFrozen)
end

__e2setcost(5)

e2function angle entity:ragdollGetAng()
if not ValidAction(self, this) then return end

local phys = this:GetPhysicsObject()

return phys:IsValid() and phys:GetAngles() or self:throw("Tried to use entity without physics", Angle())
end

__e2setcost(150)

e2function void entity:ragdollSetPos(vector pos)
if not ValidAction(self, this, "pos") then return end

Expand Down

0 comments on commit 43976e5

Please sign in to comment.