Fix for resourcepacks directory. @Khroki