From 612a885c0af56976981f534348a7a0463df6df76 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Mon, 18 Dec 2023 21:15:12 +0500 Subject: [PATCH] fix x64 (<3 rlx, fuck rubat (love u)) --- beatrun/gamemodes/beatrun/gamemode/sh/Grapple.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/Grapple.lua b/beatrun/gamemodes/beatrun/gamemode/sh/Grapple.lua index db80b94..006626b 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/Grapple.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/Grapple.lua @@ -111,7 +111,7 @@ hook.Add("SetupMove", "Grapple", function(ply, mv, cmd) local is_ent_invalid = (ent == NULL or ent == nil) and ply:GetNW2Bool("grappledNonCourse") local is_getting_off = (not ply:Alive() or mv:KeyPressed(IN_JUMP) and not grappled and not ply:OnGround() or ply:GetClimbing() ~= 0 or ply:GetMantle() ~= 0 or not usingrh) local c_delta = 0 - if not is_ent_invalid then + if IsValid(ent) and not is_ent_invalid then c_delta = (ent:GetNWVector("gpos", Vector(0,0,0)) - ent:GetNWVector("glastpos", Vector(0, 0, 0))):Length() end