Mouse disposal nullable patch (#10185)
This commit is contained in:
@@ -189,7 +189,7 @@ namespace Content.Server.Disposal.Unit.EntitySystems
|
|||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
unit.Container.Insert(toInsert);
|
unit.Container.Insert(toInsert);
|
||||||
|
|
||||||
AfterInsert(unit, toInsert);
|
AfterInsert(unit, toInsert);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -475,9 +475,9 @@ namespace Content.Server.Disposal.Unit.EntitySystems
|
|||||||
if (!Resolve(unitId, ref unit))
|
if (!Resolve(unitId, ref unit))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!HasComp<SharedHandsComponent>(userId) && toInsertId != userId) // Mobs like mouse can Jump inside even with no hands
|
if (userId.HasValue && !HasComp<SharedHandsComponent>(userId) && toInsertId != userId) // Mobs like mouse can Jump inside even with no hands
|
||||||
{
|
{
|
||||||
_popupSystem.PopupEntity(Loc.GetString("disposal-unit-no-hands"), userId, Filter.Entities(userId), PopupType.SmallCaution);
|
_popupSystem.PopupEntity(Loc.GetString("disposal-unit-no-hands"), userId.Value, Filter.Entities(userId.Value), PopupType.SmallCaution);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user