Inventory.TryPutItem doesn't put an item in the inventory (or create a NetEntityEvent) if the item is already in it
This commit is contained in:
@@ -568,7 +568,7 @@ namespace Barotrauma
|
||||
else
|
||||
{
|
||||
var item = Entity.FindEntityByID(newItemIDs[i]) as Item;
|
||||
if (item == null) continue;
|
||||
if (item == null || item == Items[i]) continue;
|
||||
|
||||
if (GameMain.Server != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user