added manneqquin (#441)
добавлен Манекен, которого можно одевать/раздевать
This commit is contained in:
@@ -313,7 +313,7 @@ public sealed class SuitSensorSystem : EntitySystem
|
||||
return null;
|
||||
|
||||
// check if sensor is enabled and worn by user
|
||||
if (sensor.Mode == SuitSensorMode.SensorOff || sensor.User == null || transform.GridUid == null)
|
||||
if (sensor.Mode == SuitSensorMode.SensorOff || sensor.User == null || !HasComp<MobStateComponent>(sensor.User) || transform.GridUid == null)
|
||||
return null;
|
||||
|
||||
// try to get mobs id from ID slot
|
||||
|
||||
Reference in New Issue
Block a user