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