From 1bee05612bc3a911c4a2e47269d695850499a294 Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Mon, 18 Nov 2019 19:12:23 -0500 Subject: [PATCH] Add float3 return type to connected blocks move func --- extracommands/MoveBlocksCommandEngine.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extracommands/MoveBlocksCommandEngine.cs b/extracommands/MoveBlocksCommandEngine.cs index 988fd51..1a13bde 100644 --- a/extracommands/MoveBlocksCommandEngine.cs +++ b/extracommands/MoveBlocksCommandEngine.cs @@ -89,8 +89,9 @@ namespace ExtraCommands.Building return posStruct.position; } - private void TranslateConnectedBlocks(uint blockID, float3 translationVector) + private float3 TranslateConnectedBlocks(uint blockID, float3 translationVector) { + newPosition = TranslateSingleBlock(blockID, translationVector); uint count = this.entitiesDB.Count(CommonExclusiveGroups.OWNED_BLOCKS_GROUP); Stack cubeStack = new Stack(count); FasterList cubeList = new FasterList(count); @@ -99,6 +100,7 @@ namespace ExtraCommands.Building { TranslateSingleBlock(id, translationVector); } + return newPosition; } // unused; for future reference