From 0379969dea6b8b56db62ec0f4548846250e28ffd Mon Sep 17 00:00:00 2001 From: Astralcircle <142503363+Astralcircle@users.noreply.github.com> Date: Sun, 10 May 2026 01:23:19 +0300 Subject: [PATCH 1/2] Remove buoyancy restore hack It is no longer needed after the current GMOD update --- lua/entities/gmod_wire_buoyancy.lua | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lua/entities/gmod_wire_buoyancy.lua b/lua/entities/gmod_wire_buoyancy.lua index ff06264b20..bb0cd4df44 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 From 849e691ffde8eb66963355f0a922507202d5c8bf Mon Sep 17 00:00:00 2001 From: Astralcircle <142503363+Astralcircle@users.noreply.github.com> Date: Sun, 10 May 2026 01:31:32 +0300 Subject: [PATCH 2/2] Don't need to track controller now --- lua/entities/gmod_wire_buoyancy.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/lua/entities/gmod_wire_buoyancy.lua b/lua/entities/gmod_wire_buoyancy.lua index bb0cd4df44..3221632c10 100644 --- a/lua/entities/gmod_wire_buoyancy.lua +++ b/lua/entities/gmod_wire_buoyancy.lua @@ -73,7 +73,6 @@ function ENT:LinkEnt(ent) self:UnlinkEnt(ent) end) - ent.WireBuoyancyController = self self:UpdateOutputs() return true @@ -85,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 @@ -95,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 = {}