Skip to content

Commit 63b2519

Browse files
committed
Fix #42: add tooltip explaining how to view attachment upgrades
1 parent 3415c41 commit 63b2519

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/main/java/dev/technici4n/moderndynamics/attachment/IoAttachmentItem.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
import java.util.EnumSet;
2727
import java.util.List;
2828
import java.util.Set;
29+
import net.minecraft.ChatFormatting;
2930
import net.minecraft.nbt.CompoundTag;
3031
import net.minecraft.network.chat.Component;
32+
import net.minecraft.network.chat.Style;
3133
import net.minecraft.world.item.ItemStack;
3234
import net.minecraft.world.item.TooltipFlag;
3335
import net.minecraft.world.level.Level;
@@ -83,6 +85,8 @@ public Set<Setting> getSupportedSettings() {
8385

8486
@Override
8587
public void appendHoverText(ItemStack stack, @Nullable Level level, List<Component> tooltipComponents, TooltipFlag isAdvanced) {
88+
tooltipComponents
89+
.add(Component.translatable("gui.moderndynamics.tooltip.attachment_upgrades").setStyle(Style.EMPTY.withColor(ChatFormatting.GOLD)));
8690
/*
8791
* if (level != null && level.isClientSide()) {
8892
* if (MdProxy.INSTANCE.isShiftDown()) {

src/main/resources/assets/moderndynamics/lang/en_us.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"gui.moderndynamics.setting.routing_mode.random": "Random",
3131
"gui.moderndynamics.setting.routing_mode.round_robin": "Round-Robin",
3232
"gui.moderndynamics.tooltip.advanced_behavior_available": "Available",
33+
"gui.moderndynamics.tooltip.attachment_upgrades": "Press U in JEI/REI to view upgrades",
3334
"gui.moderndynamics.tooltip.filter_damage": "Damage",
3435
"gui.moderndynamics.tooltip.filter_inversion": "Invert",
3536
"gui.moderndynamics.tooltip.filter_mod": "Mod",

0 commit comments

Comments
 (0)