No pointing while sleeping (#10626)

This commit is contained in:
Tomás Alves
2022-08-16 05:22:16 +01:00
committed by GitHub
parent 8e7671541a
commit 8150808eaf

View File

@@ -3,6 +3,7 @@ using Content.Server.Ghost.Components;
using Content.Server.Players;
using Content.Server.Pointing.Components;
using Content.Server.Visible;
using Content.Shared.Bed.Sleep;
using Content.Shared.IdentityManagement;
using Content.Shared.Input;
using Content.Shared.Interaction;
@@ -112,6 +113,11 @@ namespace Content.Server.Pointing.EntitySystems
return false;
}
if (HasComp<SleepingComponent>(player))
{
return false;
}
if (!InRange(player, coords))
{
player.PopupMessage(Loc.GetString("pointing-system-try-point-cannot-reach"));