Improve some methods and math of brickmanager I think a previous commit needed this and I forgot it
Improve some methods and math of brickmanager
I think a previous commit needed this and I forgot it

nhydock/revert