Skip to content

Commit 3844cb9

Browse files
Merge pull request #20 from Astralcircle/patch-2
Remove Phys:GetAABB error
2 parents c7d7b1b + 502e361 commit 3844cb9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lua/weapons/gmod_tool/stools/precision_align.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,8 @@ function TOOL:GetClickPosition(trace)
275275
if not BoxMin or not BoxMax then
276276
Pos = trace.HitPos
277277
PrecisionAlign.SetNextMessageTarget(self:GetOwner())
278-
PrecisionAlign.Warning("Phys:GetAABB(): BoxMin and/or BoxMax returned nil. Please report this error, alongside as many details as possible about the entity you ran this on.")
278+
PrecisionAlign.Warning("Phys:GetAABB(): BoxMin and/or BoxMax returned nil. Can't continue")
279279
PrecisionAlign.SetNextMessageTarget()
280-
ErrorNoHalt("Phys:GetAABB(): BoxMin and/or BoxMax returned nil. Trace entity: " .. tostring(Ent) .. ", trace physics: " .. tostring(trace.PhysicsBone) .. "(resolved to " .. tostring(Phys) .. ")")
281280
else
282281
local HitPosL = Ent:WorldToLocal( trace.HitPos )
283282
local BoxCentre = Ent:OBBCenter()
@@ -577,4 +576,4 @@ end
577576

578577
function TOOL:DrawToolScreen()
579578
PA_DrawToolScreen()
580-
end
579+
end

0 commit comments

Comments
 (0)