I did it mom

This commit is contained in:
Ellpeck 2020-03-11 23:14:42 +01:00
parent 601feceb65
commit 31de298ef9
2 changed files with 5 additions and 2 deletions

View file

@ -53,6 +53,7 @@ import net.minecraftforge.energy.EnergyStorage;
import net.minecraftforge.event.TickEvent; import net.minecraftforge.event.TickEvent;
import net.minecraftforge.event.entity.player.ItemTooltipEvent; import net.minecraftforge.event.entity.player.ItemTooltipEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.ModList;
import org.apache.commons.lang3.mutable.MutableInt; import org.apache.commons.lang3.mutable.MutableInt;
import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL11;
@ -77,6 +78,8 @@ public class ClientEvents {
@SubscribeEvent @SubscribeEvent
public void onTooltip(ItemTooltipEvent event) { public void onTooltip(ItemTooltipEvent event) {
if (ModList.get().isLoaded("enchdesc"))
return;
ItemStack stack = event.getItemStack(); ItemStack stack = event.getItemStack();
List<ITextComponent> tooltip = event.getToolTip(); List<ITextComponent> tooltip = event.getToolTip();
for (Map.Entry<Enchantment, Integer> entry : EnchantmentHelper.getEnchantments(stack).entrySet()) { for (Map.Entry<Enchantment, Integer> entry : EnchantmentHelper.getEnchantments(stack).entrySet()) {

View file

@ -186,6 +186,6 @@
"entity.naturesaura.effect_inhibitor": "Effect Powder", "entity.naturesaura.effect_inhibitor": "Effect Powder",
"entity.naturesaura.mover_cart": "Aura Attraction Cart", "entity.naturesaura.mover_cart": "Aura Attraction Cart",
"enchantment.naturesaura.aura_mending": "Nature's Mend", "enchantment.naturesaura.aura_mending": "Nature's Mend",
"enchantment.naturesaura.aura_mending.desc": "Nature's Aura Enchantment", "enchantment.naturesaura.aura_mending.desc": "Repairs tools using Aura",
"naturesaura:aura_mending.enchant.desc": "Heals the Player Using Aura" "naturesaura:aura_mending.enchant.desc": "Heals the player using Aura"
} }