Fix a exception that was thrown when running /rtp

#2
This commit is contained in:
zontreck 2025-03-06 16:58:41 -07:00
parent 403f18c020
commit 7120b4083a
3 changed files with 5 additions and 4 deletions

View file

@ -50,6 +50,7 @@ namespace AriasServerUtils
if (pPos == null)
{
ServerUtilities.SendMessageTo(isp, Lang.Get($"{ServerUtilities.MOD_ID}:rtp-fail"));
return TextCommandResult.Success();
}
Vec2i origin = new((int)isp.Entity.Pos.X, (int)isp.Entity.Pos.Z);
Vec2i npos = new(pPos.X, pPos.Z);