diff --git a/src/main/java/de/ellpeck/naturesaura/ModConfig.java b/src/main/java/de/ellpeck/naturesaura/ModConfig.java index e3bc07ee..73bcf2be 100644 --- a/src/main/java/de/ellpeck/naturesaura/ModConfig.java +++ b/src/main/java/de/ellpeck/naturesaura/ModConfig.java @@ -48,6 +48,7 @@ public final class ModConfig { public ForgeConfigSpec.ConfigValue cacheBarLocation; public ForgeConfigSpec.ConfigValue debugText; public ForgeConfigSpec.ConfigValue debugWorld; + public ForgeConfigSpec.ConfigValue renderItemsOnPlayer; public ModConfig(ForgeConfigSpec.Builder builder) { builder.push("general"); @@ -161,6 +162,10 @@ public final class ModConfig { .comment("If, when the F3 debug menu is open and the player is in creative mode, every Aura spot should be highlighted in the world for debug purposes") .translation("config." + NaturesAura.MOD_ID + ".debugWorld") .define("debugWorld", false); + this.renderItemsOnPlayer = builder + .comment("If certain equippable items, like the Environmental Eye, should be rendered on the player") + .translation("config." + NaturesAura.MOD_ID + ".renderItemsOnPlayer") + .define("renderItemsOnPlayer", true); builder.pop(); } diff --git a/src/main/java/de/ellpeck/naturesaura/renderers/PlayerLayerTrinkets.java b/src/main/java/de/ellpeck/naturesaura/renderers/PlayerLayerTrinkets.java index 13666de5..875259b3 100644 --- a/src/main/java/de/ellpeck/naturesaura/renderers/PlayerLayerTrinkets.java +++ b/src/main/java/de/ellpeck/naturesaura/renderers/PlayerLayerTrinkets.java @@ -1,6 +1,7 @@ package de.ellpeck.naturesaura.renderers; import com.mojang.blaze3d.matrix.MatrixStack; +import de.ellpeck.naturesaura.ModConfig; import de.ellpeck.naturesaura.api.render.ITrinketItem; import de.ellpeck.naturesaura.api.render.ITrinketItem.RenderType; import de.ellpeck.naturesaura.compat.Compat; @@ -35,6 +36,8 @@ public class PlayerLayerTrinkets extends LayerRenderer