From b39afa648657b4c1c8c80e93c35e6ea998c6e433 Mon Sep 17 00:00:00 2001 From: Astralcircle <142503363+Astralcircle@users.noreply.github.com> Date: Sun, 15 Dec 2024 16:58:56 +0300 Subject: [PATCH] Remove useless nan check --- lua/wire/wireshared.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/wire/wireshared.lua b/lua/wire/wireshared.lua index e547c28e25..1487ad8e09 100644 --- a/lua/wire/wireshared.lua +++ b/lua/wire/wireshared.lua @@ -1013,9 +1013,9 @@ function WireLib.clampForce( v ) local x, y, z = v:Unpack() return Vector( - x == x and clamp( x, min_force, max_force ) or 0, - y == y and clamp( y, min_force, max_force ) or 0, - z == z and clamp( z, min_force, max_force ) or 0 + clamp( x, min_force, max_force ) or 0, + clamp( y, min_force, max_force ) or 0, + clamp( z, min_force, max_force ) or 0 ) end @@ -1328,4 +1328,4 @@ local typeIDToStringTable = { -- Silly function to make printouts more userfriendly. function WireLib.typeIDToString(typeID) return typeIDToStringTable[typeID] or "unregistered type" -end \ No newline at end of file +end