fix custom texture search location

This commit is contained in:
octarine-noise
2016-02-13 11:56:18 +01:00
parent d9a042b356
commit 111f1b3907

View File

@@ -21,7 +21,7 @@ class LeafGenerator(domain: String) : TextureGenerator(domain) {
val leafType = params["type"] ?: "default"
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 }