parent
096d39609e
commit
8e9221bb5a
400 changed files with 3688 additions and 5969 deletions
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Server.Commands;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Regions
|
||||
|
|
@ -174,7 +173,7 @@ namespace Server.Regions
|
|||
{
|
||||
spawnable.Spawner = null;
|
||||
|
||||
bool uncontrolled = !(spawnable is BaseCreature) || !((BaseCreature)spawnable).Controlled;
|
||||
bool uncontrolled = (spawnable as BaseCreature)?.Controlled != true;
|
||||
|
||||
if (uncontrolled)
|
||||
spawnable.Delete();
|
||||
|
|
@ -234,10 +233,8 @@ namespace Server.Regions
|
|||
int count = reader.ReadInt();
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
if (World.FindEntity(reader.ReadUInt()) is ISpawnable spawnableEntity)
|
||||
Add(spawnableEntity);
|
||||
}
|
||||
|
||||
Running = reader.ReadBool();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue