Skip to content

Commit

Permalink
Fix modiffier model missing texture log config being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Dec 27, 2022
1 parent f28bc19 commit 36085f5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import net.minecraftforge.fml.event.IModBusEvent;
import slimeknights.mantle.data.IEarlySafeManagerReloadListener;
import slimeknights.mantle.util.JsonHelper;
import slimeknights.tconstruct.common.config.Config;
import slimeknights.tconstruct.library.client.model.DynamicTextureLoader;
import slimeknights.tconstruct.library.modifiers.ModifierId;

Expand Down Expand Up @@ -188,7 +189,7 @@ public static Map<ModifierId,IBakedModifierModel> getModelsForTool(List<Resource
ImmutableMap.Builder<ModifierId,IBakedModifierModel> modelMap = ImmutableMap.builder();

// create two texture adders, so we only log on the final option if missing
Predicate<Material> textureAdder = DynamicTextureLoader.getTextureAdder(textures, true);
Predicate<Material> textureAdder = DynamicTextureLoader.getTextureAdder(textures, Config.CLIENT.logMissingModifierTextures.get());

// load each modifier
for (Entry<ModifierId, IUnbakedModifierModel> entry : modifierModels.entrySet()) {
Expand Down

0 comments on commit 36085f5

Please sign in to comment.