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