Fixed client stalling when trying to search with # for tooltips. Fixes #2085
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
- Fixed OpenComputers voiding items with extract item API when there is no inventory space (raoulvdberge)
|
- Fixed OpenComputers voiding items with extract item API when there is no inventory space (raoulvdberge)
|
||||||
- Fixed CraftingTweaks buttons resetting sometimes in the Crafting Grid (raoulvdberge)
|
- Fixed CraftingTweaks buttons resetting sometimes in the Crafting Grid (raoulvdberge)
|
||||||
- Fixed Refined Storage jars not being signed (raoulvdberge)
|
- Fixed Refined Storage jars not being signed (raoulvdberge)
|
||||||
|
- Fixed client stalling when trying to search with # for tooltips (raoulvdberge)
|
||||||
- Removed getMissingItems() and getMissingFluids() functions from the OpenComputers integration, that info is now accessible through schedule(Fluid)Task(). If you just want to check if there are missing items/fluids but don't want to start an actual task, use the "canSchedule" parameter (raoulvdberge)
|
- Removed getMissingItems() and getMissingFluids() functions from the OpenComputers integration, that info is now accessible through schedule(Fluid)Task(). If you just want to check if there are missing items/fluids but don't want to start an actual task, use the "canSchedule" parameter (raoulvdberge)
|
||||||
- Updated Russian translation (kellixon)
|
- Updated Russian translation (kellixon)
|
||||||
- Added fluid functions for the fluid autocrafting to the OpenComputers integration (raoulvdberge)
|
- Added fluid functions for the fluid autocrafting to the OpenComputers integration (raoulvdberge)
|
||||||
|
@@ -28,6 +28,7 @@ public class GridStackItem implements IGridStack {
|
|||||||
private IStorageTracker.IStorageTrackerEntry entry;
|
private IStorageTracker.IStorageTrackerEntry entry;
|
||||||
private String modId;
|
private String modId;
|
||||||
private String modName;
|
private String modName;
|
||||||
|
private String tooltip;
|
||||||
|
|
||||||
public GridStackItem(ItemStack stack) {
|
public GridStackItem(ItemStack stack) {
|
||||||
this.stack = stack;
|
this.stack = stack;
|
||||||
@@ -137,13 +138,17 @@ public class GridStackItem implements IGridStack {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getTooltip() {
|
public String getTooltip() {
|
||||||
|
if (tooltip == null) {
|
||||||
try {
|
try {
|
||||||
return RenderUtils.getItemTooltip(stack).stream().collect(Collectors.joining("\n"));
|
tooltip = RenderUtils.getItemTooltip(stack).stream().collect(Collectors.joining("\n"));
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
return "";
|
tooltip = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return tooltip;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getQuantity() {
|
public int getQuantity() {
|
||||||
return doesDisplayCraftText() ? 0 : stack.getCount();
|
return doesDisplayCraftText() ? 0 : stack.getCount();
|
||||||
|
Reference in New Issue
Block a user