From 9b717b549b1452dcc96310074ef0221870ca230c Mon Sep 17 00:00:00 2001 From: octarine-noise Date: Wed, 13 Jan 2016 23:00:19 +0100 Subject: [PATCH] fix for fix of #36 --- .../kotlin/mods/betterfoliage/client/texture/LeafRegistry.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/mods/betterfoliage/client/texture/LeafRegistry.kt b/src/main/kotlin/mods/betterfoliage/client/texture/LeafRegistry.kt index b5db24f..526842c 100644 --- a/src/main/kotlin/mods/betterfoliage/client/texture/LeafRegistry.kt +++ b/src/main/kotlin/mods/betterfoliage/client/texture/LeafRegistry.kt @@ -38,7 +38,7 @@ class LeafInfo( object LeafRegistry : BlockTextureInspector() { val particles: MutableMap = hashMapOf() - val typeMappings = TextureMatcher().apply { loadMappings(ResourceLocation("betterfoliage", "leafTextureMappings.cfg")) } + val typeMappings = TextureMatcher() init { matchClassAndModel(Config.blocks.leaves, "minecraft:block/leaves", listOf("all")) @@ -48,6 +48,7 @@ object LeafRegistry : BlockTextureInspector() { super.onAfterModelLoad() Client.log(INFO, "Inspecting leaf textures") particles.clear() + typeMappings.loadMappings(ResourceLocation("betterfoliage", "leafTextureMappings.cfg")) } override fun processTextures(textures: List, atlas: TextureMap): LeafInfo {