Skip to content

Commit

Permalink
Player items wasn't spawned fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankumo committed Jul 10, 2017
1 parent c4b15cd commit cf144bb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions SmartSpawner.cs
Expand Up @@ -199,6 +199,14 @@ private void RefreshItems()

long itemsSpawnedCount = 0;

if (!Configuration.Instance.clearPlayerItems)
{
for (var i = 0; i < droppedItems.Count; i++)
{
ItemManager.dropItem(droppedItems[i].item, droppedItems[i].point, false, true, false);
}
}

if (currentRegionSpawnsIndexes.Count <= 0)
{
continue;
Expand All @@ -225,14 +233,7 @@ private void RefreshItems()

itemsSpawnedCount++;
}

if(!Configuration.Instance.clearPlayerItems)
{
for (var i = 0; i < droppedItems.Count; i++)
{
ItemManager.dropItem(droppedItems[i].item, droppedItems[i].point, false, true, false);
}
}

}
}
}
Expand Down

0 comments on commit cf144bb

Please sign in to comment.