mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 20:43:02 +05:00
smol cleanup
This commit is contained in:
parent
e2d2853f19
commit
da056be0c2
1 changed files with 3 additions and 2 deletions
|
@ -619,6 +619,7 @@ if SERVER then
|
|||
a:Spawn()
|
||||
|
||||
local phys = a:GetPhysicsObject()
|
||||
|
||||
if IsValid(phys) then
|
||||
phys:EnableMotion(false)
|
||||
phys:Sleep()
|
||||
|
@ -1407,11 +1408,11 @@ if CLIENT then
|
|||
end
|
||||
|
||||
hook.Add("InitPostEntity", "buildmode_create_hook", function()
|
||||
timer.Simple(2, function()
|
||||
timer.Simple(2, function()
|
||||
hook.Add("OnEntityCreated", "BuildModeProps", function(ent)
|
||||
if not ent:GetNW2Bool("BRProtected") and ent:GetClass() == "prop_physics" or buildmode_ents[ent:GetClass()] then
|
||||
if not BuildMode then ent.buildmode_placed_manually = true end
|
||||
|
||||
|
||||
table.insert(buildmode_placed, ent)
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue