private void PickupItem(ItemEntity item) { if (Server.GetEntityById(item.EntityId) == null) return; Server.SendPacketToNearbyPlayers(item.World, UniversalCoords.FromAbsWorld(item.Position), new CollectItemPacket { EntityId = item.EntityId, PlayerId = EntityId }); Server.RemoveEntity(item); Inventory.AddItem(item.ItemId, item.Count, item.Durability); }