Fixed more config errors
Fixed block metadata seperation code
Removed unecessary variable type casting