Texture Registration

fixed (read : added)  code for registering textures in blocks