fix custom texture search location

This commit is contained in:
octarine-noise committed 2016-02-13 11:56:48 +01:00
1 parent d9a042b356
commit 111f1b3907
1 file changed
+1 -1
@@ -21,7 +21,7 @@ class LeafGenerator(domain: String) : TextureGenerator(domain) {
val leafType = params["type"] ?: "default" val leafType = params["type"] ?: "default"
val handDrawnLoc = target.second.stripStart("textures/").stripStart("blocks/").let { val handDrawnLoc = target.second.stripStart("textures/").stripStart("blocks/").let {
ResourceLocation(BetterFoliageMod.DOMAIN, "textures/blocks/${it.resourceDomain}/${it.resourcePath}") ResourceLocation(BetterFoliageMod.DOMAIN, "${it.resourceDomain}/textures/blocks/${it.resourcePath}")
} }
resourceManager[handDrawnLoc]?.loadImage()?.let { return it } resourceManager[handDrawnLoc]?.loadImage()?.let { return it }