fix for fix of #36
This commit is contained in:
@@ -38,7 +38,7 @@ class LeafInfo(
|
|||||||
object LeafRegistry : BlockTextureInspector<LeafInfo>() {
|
object LeafRegistry : BlockTextureInspector<LeafInfo>() {
|
||||||
|
|
||||||
val particles: MutableMap<String, IconSet> = hashMapOf()
|
val particles: MutableMap<String, IconSet> = hashMapOf()
|
||||||
val typeMappings = TextureMatcher().apply { loadMappings(ResourceLocation("betterfoliage", "leafTextureMappings.cfg")) }
|
val typeMappings = TextureMatcher()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
matchClassAndModel(Config.blocks.leaves, "minecraft:block/leaves", listOf("all"))
|
matchClassAndModel(Config.blocks.leaves, "minecraft:block/leaves", listOf("all"))
|
||||||
@@ -48,6 +48,7 @@ object LeafRegistry : BlockTextureInspector<LeafInfo>() {
|
|||||||
super.onAfterModelLoad()
|
super.onAfterModelLoad()
|
||||||
Client.log(INFO, "Inspecting leaf textures")
|
Client.log(INFO, "Inspecting leaf textures")
|
||||||
particles.clear()
|
particles.clear()
|
||||||
|
typeMappings.loadMappings(ResourceLocation("betterfoliage", "leafTextureMappings.cfg"))
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun processTextures(textures: List<TextureAtlasSprite>, atlas: TextureMap): LeafInfo {
|
override fun processTextures(textures: List<TextureAtlasSprite>, atlas: TextureMap): LeafInfo {
|
||||||
|
|||||||
Reference in New Issue
Block a user