Improve compatibility with resource packs. Fixes #6