fix: Fixes respawn command when spawner is off (#1891)
This commit is contained in:
parent
4a83b651f4
commit
4610712205
4 changed files with 5 additions and 4 deletions
|
|
@ -575,9 +575,9 @@ public class AdvancedSearchGump : Gump
|
|||
{
|
||||
var entry = SearchResults[i];
|
||||
|
||||
if (entry.Selected)
|
||||
if (entry.Selected && entry.Entity is ISpawner { Running: true } spawner)
|
||||
{
|
||||
(entry.Entity as Spawner)?.Respawn();
|
||||
spawner.Respawn();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue