From f7794c268cad5d0f37f8b940607289424b0ada65 Mon Sep 17 00:00:00 2001 From: kookroach <62265045+kookroach@users.noreply.github.com> Date: Mon, 5 Apr 2021 03:03:41 +0200 Subject: [PATCH] fix drop weapon create --- ReallifeGamemode.Server/Managers/InventoryManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ReallifeGamemode.Server/Managers/InventoryManager.cs b/ReallifeGamemode.Server/Managers/InventoryManager.cs index ac6325ba..c8befc54 100644 --- a/ReallifeGamemode.Server/Managers/InventoryManager.cs +++ b/ReallifeGamemode.Server/Managers/InventoryManager.cs @@ -560,6 +560,7 @@ namespace ReallifeGamemode.Server.Managers Vector3 textPos = dropPosition; if (iItem is IWeaponDealItem obj) { + player.ClearAttachments(); dropPosition.Z -= 1.05f; grndObject = NAPI.Object.CreateObject(3666746839, dropPosition, new Vector3(0, 0, r.Next(0, 360)), 255, 0); }