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:
parent
ac10c987ac
commit
36a04f94c7
1 changed files with 2 additions and 2 deletions
|
|
@ -155,9 +155,9 @@ namespace SceneManager
|
|||
RemoveBarrier();
|
||||
}
|
||||
|
||||
if(selectedItem == resetBarriers)
|
||||
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue