From 0fde95ffc61c6d013d72c6821c5fa39c0c6df9ce Mon Sep 17 00:00:00 2001 From: Timmy Date: Fri, 4 Aug 2023 14:47:15 +0200 Subject: [PATCH] perf (`ToolGun`): reduce useless network usage A "Color" value was set on `ToolGun` instances and broadcasted to everyone while it wasn't used anywhere --- Server/Tools/BaseToolGun.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Server/Tools/BaseToolGun.lua b/Server/Tools/BaseToolGun.lua index a530130..910de05 100644 --- a/Server/Tools/BaseToolGun.lua +++ b/Server/Tools/BaseToolGun.lua @@ -19,7 +19,6 @@ function ToolGun:Constructor(location, rotation, color) self:SetCrosshairMaterial("nanos-world::MI_Crosshair_Dot") self:SetUsageSettings(false, false) - self:SetValue("Color", color, true) self:SetMaterialColorParameter("Emissive", color * 100) end @@ -40,4 +39,4 @@ function ToolGun:OnDrop(character) end ToolGun.Subscribe("PickUp", ToolGun.OnPickUp) -ToolGun.Subscribe("Drop", ToolGun.OnDrop) \ No newline at end of file +ToolGun.Subscribe("Drop", ToolGun.OnDrop)