예제 #1
0
        private static void ApplyBackFixes(IMyCubeGrid grid)
        {
            // Worried these might be causing lag as there are a lot of them
            foreach (var productionBlock in grid.GetTerminalBlocksOfType <IMyProductionBlock>())
            {
                productionBlock.Enabled = false;
            }

            foreach (var buttonPanel in grid.GetTerminalBlocksOfTypeInSubgrids <IMyButtonPanel>())
            {
                buttonPanel.AnyoneCanUse = true;
            }
        }