From 74d5981c22f6749ba140a193e5a6c9492f0ab7f9 Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Mon, 30 Jan 2023 19:45:36 +0100 Subject: [PATCH] Fixed items not being removed from inventory --- P3D/Player/PlayerInventory.vb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/P3D/Player/PlayerInventory.vb b/P3D/Player/PlayerInventory.vb index 8c6f7b554..b24ae1876 100644 --- a/P3D/Player/PlayerInventory.vb +++ b/P3D/Player/PlayerInventory.vb @@ -99,6 +99,13 @@ Public Class PlayerInventory End If End If Next + Else + For Each c As ItemContainer In Me + If c.ItemID = ID Then + Me.Remove(c) + Exit Sub + End If + Next End If End Sub