aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main/java/me/shedaniel/rei
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2023-05-29 13:56:47 +0800
committershedaniel <daniel@shedaniel.me>2023-05-29 21:23:07 +0800
commit8b4a744e6460aa830e14861246fd5c3c8542280e (patch)
treee740056fd716a136e49bac4b65ceb7758e2acab5 /runtime/src/main/java/me/shedaniel/rei
parentb70b8847c2ffa04b447da5d1b14358bb405794e5 (diff)
downloadRoughlyEnoughItems-8b4a744e6460aa830e14861246fd5c3c8542280e.tar.gz
RoughlyEnoughItems-8b4a744e6460aa830e14861246fd5c3c8542280e.tar.bz2
RoughlyEnoughItems-8b4a744e6460aa830e14861246fd5c3c8542280e.zip
Fix #1362
Diffstat (limited to 'runtime/src/main/java/me/shedaniel/rei')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/ClientHelperImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/ClientHelperImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/ClientHelperImpl.java
index da6f9638a..d13760f9d 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/client/ClientHelperImpl.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/ClientHelperImpl.java
@@ -135,10 +135,11 @@ public class ClientHelperImpl implements ClientHelper {
@Override
public void appendModIdToTooltips(Tooltip components, String modId) {
final String modName = ClientHelper.getInstance().getModFromModId(modId);
+ int i = 0;
Iterator<Component> iterator = components.getText().iterator();
while (iterator.hasNext()) {
Component s = iterator.next();
- if (FormattingUtils.stripFormatting(s.getString()).equalsIgnoreCase(modName)) {
+ if (i++ != 0 && FormattingUtils.stripFormatting(s.getString()).equalsIgnoreCase(modName)) {
iterator.remove();
}
}