widgets texture is all we dep on from impl now

This commit is contained in:
yrsegal@gmail.com 2022-06-04 14:50:36 -04:00
parent ae89127572
commit 1f113fbbdd

View file

@ -9,9 +9,9 @@ import at.petrak.hexcasting.mixin.accessor.AccessorPoiType;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.PoseStack;
import dev.emi.emi.api.EmiRender;
import dev.emi.emi.api.EmiTooltipComponents;
import dev.emi.emi.api.stack.EmiIngredient;
import dev.emi.emi.api.stack.EmiStack;
import dev.emi.emi.screen.tooltip.RemainderTooltipComponent;
import net.minecraft.ChatFormatting;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent;
@ -144,7 +144,7 @@ public class VillagerEmiStack extends EmiStack {
List<ClientTooltipComponent> list = getTooltipText().stream().map(Component::getVisualOrderText).map(ClientTooltipComponent::create)
.collect(Collectors.toList());
if (!getRemainder().isEmpty()) {
list.add(new RemainderTooltipComponent(this));
list.add(EmiTooltipComponents.getRemainderTooltipComponent(this));
}
return list;
}