Skip to content

Commit

Permalink
Remove old remnant from Entity.setDrawShadow (#1585)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnejm authored Dec 29, 2023
1 parent a278b41 commit f5b13b2
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lua/starfall/libs_sv/entities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -353,16 +353,11 @@ end

--- Sets whether an entity's shadow should be drawn
-- @param boolean draw Whether the shadow should draw
-- @param Player? ply Optional player argument to set only for that player. Can also be table of players.
function ents_methods:setDrawShadow(draw, ply)
function ents_methods:setDrawShadow(draw)
local ent = getent(self)
checkpermission(instance, ent, "entities.setRenderProperty")

if ply then
sendRenderPropertyToClient(ply, ent, 9, draw and true or false)
else
ent:DrawShadow(draw and true or false)
end
checkluatype(draw, TYPE_BOOL)
ent:DrawShadow(draw)
end

--- Sets the entity's position. No interpolation will occur clientside, use physobj.setPos to have interpolation.
Expand Down

0 comments on commit f5b13b2

Please sign in to comment.