diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-08-08 18:25:12 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-08-08 18:25:12 +0800 |
| commit | 2e4f4b41332474e1610af8e4e83b24b44eea83bc (patch) | |
| tree | 22b4ae194b84f5d5e6e463b7d3ca7bde22f278c0 /RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java | |
| parent | 8a2df51193fd3db145f3b1ace974e9e0a0bc09a5 (diff) | |
| download | RoughlyEnoughItems-2e4f4b41332474e1610af8e4e83b24b44eea83bc.tar.gz RoughlyEnoughItems-2e4f4b41332474e1610af8e4e83b24b44eea83bc.tar.bz2 RoughlyEnoughItems-2e4f4b41332474e1610af8e4e83b24b44eea83bc.zip | |
Fix duplicate mod id with hwyla
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java')
| -rw-r--r-- | RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java index d75deeda5..ce8b5ef94 100644 --- a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java +++ b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java @@ -45,6 +45,7 @@ import net.minecraft.fluid.Fluids; import net.minecraft.text.LiteralText; import net.minecraft.text.Text; import net.minecraft.text.TranslatableText; +import net.minecraft.util.Formatting; import net.minecraft.util.Identifier; import net.minecraft.util.math.Matrix4f; import net.minecraft.util.registry.Registry; @@ -205,7 +206,7 @@ public class FluidEntryStack extends AbstractEntryStack { final String modId = ClientHelper.getInstance().getModFromIdentifier(id); boolean alreadyHasMod = false; for (Text s : toolTip) - if (s.getString().equalsIgnoreCase(modId)) { + if (Formatting.strip(s.getString()).equalsIgnoreCase(modId)) { alreadyHasMod = true; break; } |
