Return an ArrayList rather than ImmutableList for FluidGrid tooltip
Fixes #3187
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.refinedmods.refinedstorage.screen.grid.stack;
|
package com.refinedmods.refinedstorage.screen.grid.stack;
|
||||||
|
|
||||||
|
import com.google.common.collect.Lists;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
import com.refinedmods.refinedstorage.api.storage.tracker.StorageTrackerEntry;
|
import com.refinedmods.refinedstorage.api.storage.tracker.StorageTrackerEntry;
|
||||||
import com.refinedmods.refinedstorage.apiimpl.API;
|
import com.refinedmods.refinedstorage.apiimpl.API;
|
||||||
@@ -135,11 +136,10 @@ public class FluidGridStack implements IGridStack {
|
|||||||
if (bypassCache || cachedTooltip == null) {
|
if (bypassCache || cachedTooltip == null) {
|
||||||
List<Component> tooltip;
|
List<Component> tooltip;
|
||||||
try {
|
try {
|
||||||
tooltip = Arrays.asList(stack.getDisplayName());
|
tooltip = Lists.newArrayList(stack.getDisplayName());
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
logger.warn("Could not retrieve fluid tooltip of {}", stack.getFluid().getRegistryName());
|
logger.warn("Could not retrieve fluid tooltip of {}", stack.getFluid().getRegistryName());
|
||||||
|
tooltip = Lists.newArrayList(new TextComponent(ERROR_PLACEHOLDER));
|
||||||
tooltip = Arrays.asList(new TextComponent(ERROR_PLACEHOLDER));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bypassCache) {
|
if (bypassCache) {
|
||||||
|
|||||||
Reference in New Issue
Block a user