Add new entity spawn test & fix misc bugs (#19953)
This commit is contained in:
@@ -70,7 +70,7 @@ public sealed partial class GatherableSystem : EntitySystem
|
||||
continue;
|
||||
}
|
||||
var getLoot = _prototypeManager.Index<EntityLootTablePrototype>(table);
|
||||
var spawnLoot = getLoot.GetSpawns();
|
||||
var spawnLoot = getLoot.GetSpawns(_random);
|
||||
var spawnPos = pos.Offset(_random.NextVector2(0.3f));
|
||||
Spawn(spawnLoot[0], spawnPos);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user