fix: Fixes duping of spawners (#1255)
This commit is contained in:
parent
0abf72ed2f
commit
10446426c0
1 changed files with 4 additions and 0 deletions
|
|
@ -314,6 +314,10 @@ public abstract class BaseSpawner : Item, ISpawner
|
|||
{
|
||||
if (newItem is BaseSpawner newSpawner)
|
||||
{
|
||||
newSpawner._guid = Guid.NewGuid();
|
||||
newSpawner.Spawned = new Dictionary<ISpawnable, SpawnerEntry>();
|
||||
newSpawner.Entries = new List<SpawnerEntry>();
|
||||
|
||||
for (var i = 0; i < Entries.Count; i++)
|
||||
{
|
||||
newSpawner.AddEntry(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue