Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ dependencies {
implementation('com.github.GTNewHorizons:GTNHLib:0.6.21:dev')
implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.40-GTNH:dev")
compileOnly("curse.maven:cofh-core-69162:2388750-dev:dev")

compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.6.4:dev') {transitive=false}
compileOnly("com.github.GTNewHorizons:Chisel:2.16.5-GTNH:dev") { transitive = false }
// for testing
//runtimeOnlyNonPublishable("com.github.GTNewHorizons:EnderIO:2.9.12:dev") { transitive = false }
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
import com.enderio.core.common.util.ItemUtil;
import com.google.common.collect.Lists;

import codechicken.microblock.ItemSaw;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import team.chisel.item.chisel.ItemChisel;

@Handler
public enum SpecialTooltipHandler {
Expand Down Expand Up @@ -94,6 +97,18 @@ public void addDurabilityTooltip(List<String> toolTip, ItemStack itemStack) {
|| item instanceof ItemBow) {
toolTip.add(ItemUtil.getDurabilityString(itemStack));
}

if (Loader.isModLoaded("chisel")) {
if (item instanceof ItemChisel) {
toolTip.add(ItemUtil.getDurabilityString(itemStack));
}
}

if (Loader.isModLoaded("ForgeMultipart")) {
if (item instanceof ItemSaw) {
toolTip.add(ItemUtil.getDurabilityString(itemStack));
}
}
}

public void addInformation(IResourceTooltipProvider item, ItemTooltipEvent evt) {
Expand Down