|
|
@@ -2,13 +2,13 @@ using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using DataLoader; |
|
|
|
using GamecraftModdingAPI; |
|
|
|
using GamecraftModdingAPI.Blocks; |
|
|
|
using GamecraftModdingAPI.Commands; |
|
|
|
using GamecraftModdingAPI.Utility; |
|
|
|
using TechbloxModdingAPI; |
|
|
|
using TechbloxModdingAPI.Blocks; |
|
|
|
using TechbloxModdingAPI.Commands; |
|
|
|
using TechbloxModdingAPI.Utility; |
|
|
|
using IllusionPlugin; |
|
|
|
using Unity.Mathematics; |
|
|
|
using Main = GamecraftModdingAPI.Main; |
|
|
|
using Main = TechbloxModdingAPI.Main; |
|
|
|
|
|
|
|
namespace BuildingTools |
|
|
|
{ |
|
|
@@ -282,7 +282,7 @@ namespace BuildingTools |
|
|
|
{ |
|
|
|
var player = Player.LocalPlayer; |
|
|
|
if (player == null) return ""; |
|
|
|
GamecraftModdingAPI.FlyCam cam = GameState.IsBuildMode() ? player.BuildCamera : null; |
|
|
|
TechbloxModdingAPI.FlyCam cam = GameState.IsBuildMode() ? player.BuildCamera : null; |
|
|
|
//float3 pos = cam?.Position ?? player.Position; |
|
|
|
float3 rot = cam?.Rotation ?? player.Rotation; |
|
|
|
float3 vel = cam?.Velocity ?? player.Velocity; |
|
|
|