Skip to content

Commit 9ad5f1e

Browse files
authored
Small random cleanups (#3188)
* Fix incorrect return * Remove unused function
1 parent 8f8368c commit 9ad5f1e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lua/entities/gmod_wire_expression2/core/entity.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ end
11491149
__e2setcost(50)
11501150

11511151
e2function array entity:getFlexes()
1152-
if not IsValid(this) then return self:throw("Invalid entity!", 0) end
1152+
if not IsValid(this) then return self:throw("Invalid entity!", {}) end
11531153
local ret = {}
11541154
for i = 0, this:GetFlexNum() - 1 do
11551155
ret[i] = this:GetFlexName(i)

lua/entities/gmod_wire_expression2/core/hologram.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,6 @@ e2function void holoUnparent(index)
12481248
if not Holo then return end
12491249

12501250
Holo.ent:SetParent(nil)
1251-
Holo.ent:SetParentPhysNum(0)
12521251
end
12531252

12541253
-- -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)