A recent commit has been made that caused patches to be out of order, rebuilding
Uses optimized check to avoid major locks and large method. Will improve inlining across many hot methods. Improve getBrightness to not do double chunk map lookups.