Don't display advanced tooltip in Crafting Monitor. Fixes #2067

This commit is contained in:
raoulvdberge
2018-10-31 17:11:32 +01:00
parent 60a37bfe3d
commit 750d4bc9fd
3 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
# Refined Storage Changelog # Refined Storage Changelog
### 1.6.10
- Fixed client FPS stalling when using "@" mod search in the Grid (raoulvdberge)
### 1.6.9 ### 1.6.9
- Fixed OpenComputers "unknown error" when using extract item API (raoulvdberge) - Fixed OpenComputers "unknown error" when using extract item API (raoulvdberge)
- Fixed client FPS stuttering when opening a Crafting Grid (raoulvdberge) - Fixed client FPS stuttering when opening a Crafting Grid (raoulvdberge)
@@ -18,7 +21,7 @@
- Added new Crafter modes: ignore redstone signal, redstone signal unlocks autocrafting, redstone signal locks autocrafting and redstone pulse inserts next set (replacement for blocking mode) (raoulvdberge) - Added new Crafter modes: ignore redstone signal, redstone signal unlocks autocrafting, redstone signal locks autocrafting and redstone pulse inserts next set (replacement for blocking mode) (raoulvdberge)
- Added a config option to configure the autocrafting calculation timeout in milliseconds (raoulvdberge) - Added a config option to configure the autocrafting calculation timeout in milliseconds (raoulvdberge)
- Added throttling for network devices that can request autocrafting (raoulvdberge) - Added throttling for network devices that can request autocrafting (raoulvdberge)
- Renamed Cut Processors to Raw Processors and those are now made with Processor Binding instead of a Cutting Tool (raoulvdberge) - Renamed Cut Processors to Raw PrDon't display advanced tooltip in Crafting Monitorocessors and those are now made with Processor Binding instead of a Cutting Tool (raoulvdberge)
- Fixed an autocrafting bug where it crashed when external inventories couldn't be filled (raoulvdberge) - Fixed an autocrafting bug where it crashed when external inventories couldn't be filled (raoulvdberge)
- Fixed a duplication bug with a disconnected Crafting Grid (raoulvdberge) - Fixed a duplication bug with a disconnected Crafting Grid (raoulvdberge)
- Fixed oredict autocrafting sometimes reporting that a craftable item is missing (raoulvdberge) - Fixed oredict autocrafting sometimes reporting that a craftable item is missing (raoulvdberge)

View File

@@ -13,7 +13,6 @@ import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.SideOnly;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import java.util.stream.Collectors;
public class CraftingMonitorElementItemRender implements ICraftingMonitorElement { public class CraftingMonitorElementItemRender implements ICraftingMonitorElement {
private static final int COLOR_PROCESSING = 0xFFD9EDF7; private static final int COLOR_PROCESSING = 0xFFD9EDF7;
@@ -100,7 +99,7 @@ public class CraftingMonitorElementItemRender implements ICraftingMonitorElement
@Nullable @Nullable
@Override @Override
public String getTooltip() { public String getTooltip() {
return RenderUtils.getItemTooltip(this.stack).stream().collect(Collectors.joining("\n")); return RenderUtils.getBriefItemTooltip(this.stack);
} }
@Override @Override

View File

@@ -429,6 +429,10 @@ public final class RenderUtils {
return lines; return lines;
} }
public static String getBriefItemTooltip(ItemStack stack) {
return stack.getRarity().color + stack.getDisplayName();
}
public static boolean isLightMapDisabled() { public static boolean isLightMapDisabled() {
return FMLClientHandler.instance().hasOptifine() || !ForgeModContainer.forgeLightPipelineEnabled; return FMLClientHandler.instance().hasOptifine() || !ForgeModContainer.forgeLightPipelineEnabled;
} }