Fixes some commands.

This commit is contained in:
hondacrx
2023-03-11 09:09:23 -05:00
parent 0976986f55
commit cbf539f691
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -388,7 +388,7 @@ namespace Game.Chat.Commands
z = Math.Max(terrain.GetStaticHeight(PhasingHandler.EmptyPhaseShift, mapId, x, y, MapConst.MaxHeight), terrain.GetWaterLevel(PhasingHandler.EmptyPhaseShift, mapId, x, y));
}
return DoTeleport(handler, new Position(x, y, z.Value, o.Value), mapId);
return DoTeleport(handler, new Position(x, y, z.Value, o.GetValueOrDefault()), mapId);
}
//teleport at coordinates