diff --git a/lua/entities/gmod_wire_buoyancy.lua b/lua/entities/gmod_wire_buoyancy.lua index ff06264b20..3221632c10 100644 --- a/lua/entities/gmod_wire_buoyancy.lua +++ b/lua/entities/gmod_wire_buoyancy.lua @@ -53,19 +53,6 @@ function ENT:TriggerInput(name, value) end end --- Buoyancy is reset by the physgun and gravgun -local function RestoreBuoyancy(ply, ent) - if ent.WireBuoyancyController then - timer.Simple(0 , function() - if not ent:IsValid() or not ent.WireBuoyancyController then return end - SetBuoyancy(ent, ent.WireBuoyancyController) - end) - end -end - -hook.Add("PhysgunDrop", "WireBuoyancy", RestoreBuoyancy) -hook.Add("GravGunOnDropped", "WireBuoyancy", RestoreBuoyancy) - function ENT:CheckEnt(checkent) for index, ent in ipairs(self.Marks) do if checkent == ent then @@ -86,7 +73,6 @@ function ENT:LinkEnt(ent) self:UnlinkEnt(ent) end) - ent.WireBuoyancyController = self self:UpdateOutputs() return true @@ -98,7 +84,6 @@ function ENT:UnlinkEnt(ent) if bool then table.remove(self.Marks, index) ent:RemoveCallOnRemove("Buoyancy.Unlink" .. self:EntIndex()) - ent.WireBuoyancyController = nil self:UpdateOutputs() end @@ -108,7 +93,6 @@ end function ENT:ClearEntities() for index, ent in ipairs(self.Marks) do ent:RemoveCallOnRemove("Buoyancy.Unlink" .. self:EntIndex()) - ent.WireBuoyancyController = nil end self.Marks = {}