1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 15:40:29 +01:00

Fixed flares resetting when they weren't supposed to by referencing the correct model name.

This commit is contained in:
Rich Dunne 2020-09-06 22:08:20 -06:00
parent ac10c987ac
commit 36a04f94c7

View file

@ -157,7 +157,7 @@ namespace SceneManager
if (selectedItem == resetBarriers)
{
foreach(Barrier barrier in barriers.Where(b => b.GetBarrier() && !b.GetBarrier().Model.Name.Contains("flare")))
foreach(Barrier barrier in barriers.Where(b => b.GetBarrier()?.Model.Name != "0xa2c44e80")) // 0xa2c44e80 is the model name of the spawned flare
{
barrier.GetBarrier().Position = barrier.GetPosition();
barrier.GetBarrier().Heading = barrier.GetRotation();