HotFix for getCenter

Because of method floodDiv not existing in Java lower than 1.8