@@ -9,6 +9,7 @@ using Content.Shared.Tabletop.Events;
|
||||
using Content.Shared.Verbs;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Enums;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Utility;
|
||||
@@ -41,7 +42,7 @@ namespace Content.Server.Tabletop
|
||||
|
||||
private void OnTabletopRequestTakeOut(TabletopRequestTakeOut msg, EntitySessionEventArgs args)
|
||||
{
|
||||
if (args.SenderSession is not { } playerSession)
|
||||
if (args.SenderSession is not IPlayerSession playerSession)
|
||||
return;
|
||||
|
||||
var table = GetEntity(msg.TableUid);
|
||||
@@ -104,7 +105,7 @@ namespace Content.Server.Tabletop
|
||||
|
||||
protected override void OnTabletopMove(TabletopMoveEvent msg, EntitySessionEventArgs args)
|
||||
{
|
||||
if (args.SenderSession is not { } playerSession)
|
||||
if (args.SenderSession is not IPlayerSession playerSession)
|
||||
return;
|
||||
|
||||
if (!TryComp(GetEntity(msg.TableUid), out TabletopGameComponent? tabletop) || tabletop.Session is not { } session)
|
||||
@@ -154,7 +155,7 @@ namespace Content.Server.Tabletop
|
||||
|
||||
private void OnStopPlaying(TabletopStopPlayingEvent msg, EntitySessionEventArgs args)
|
||||
{
|
||||
CloseSessionFor(args.SenderSession, GetEntity(msg.TableUid));
|
||||
CloseSessionFor((IPlayerSession)args.SenderSession, GetEntity(msg.TableUid));
|
||||
}
|
||||
|
||||
private void OnPlayerDetached(EntityUid uid, TabletopGamerComponent component, PlayerDetachedEvent args)
|
||||
|
||||
Reference in New Issue
Block a user