Skip to content

Commit

Permalink
Fix null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Partmedia committed Mar 31, 2024
1 parent 23c3407 commit 6a948a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Warps/WarperSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ sealed class NextLevelCommand : IConsoleCommand

public void Execute(IConsoleShell shell, string argStr, string[] args)
{
if (shell.Player == null || shell.Player.AttachedEntity == null)
if (shell.Player == null || shell.Player.AttachedEntity == null || shell.Player.AttachedEntityTransform == null)
{
shell.WriteLine("You need a player and attached entity to use this command.");
return;
Expand Down

0 comments on commit 6a948a8

Please sign in to comment.