iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://github.com/N1Ran/BlockLimiter/issues/114
Add settings to ignore sub-grids when counting small and large grids. · Issue #114 · N1Ran/BlockLimiter · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add settings to ignore sub-grids when counting small and large grids. #114

Open
MartinAndreev opened this issue Apr 16, 2024 · 0 comments
Open

Comments

@MartinAndreev
Copy link

MartinAndreev commented Apr 16, 2024

Hey, I really like the plugin, but we are having a small issue, where subgrids are being counted as not part of the grid. Checked your code, and found a way it can be added as a setting, but adding an additional check

 sb.AppendLine($"Small Grid Block Limits");
 foreach (var grid in grids.Where(x=> x.BlocksCount > 0 && x.GridSizeEnum == MyCubeSize.Small && grids.Count(y => y.IsSameConstructAs(x)) == 0))
                        {

that checks if it's connected in any way to the grid.

https://github.com/malware-dev/MDK-SE/wiki/VRage.Game.ModAPI.Ingame.IMyCubeGrid.IsSameConstructAs

Is there a way that this can be added to the plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant