Fix arrow texture in emi recipes

This commit is contained in:
Sollace 2023-05-20 13:45:18 +01:00
parent 2369445529
commit fa83842689
3 changed files with 5 additions and 1 deletions

View file

@ -19,6 +19,7 @@ import com.minelittlepony.unicopia.item.group.MultiItem;
import dev.emi.emi.api.EmiPlugin;
import dev.emi.emi.api.EmiRegistry;
import dev.emi.emi.api.recipe.EmiRecipeCategory;
import dev.emi.emi.api.render.EmiTexture;
import dev.emi.emi.api.stack.Comparison;
import dev.emi.emi.api.stack.EmiStack;
import net.minecraft.item.ItemStack;
@ -30,6 +31,9 @@ public class Main implements EmiPlugin {
static final EmiRecipeCategory SPELL_BOOK_CATEGORY = new EmiRecipeCategory(Unicopia.id("spellbook"), SPELL_BOOK_STATION, SPELL_BOOK_STATION);
static final Comparison COMPARING_BOTH = Comparison.builder().nbt(true).build();
static final Identifier WIDGETS = Unicopia.id("textures/gui/widgets.png");
static final EmiTexture EMPTY_ARROW = new EmiTexture(WIDGETS, 44, 0, 24, 17);
@Override
public void register(EmiRegistry registry) {
registry.addCategory(SPELL_BOOK_CATEGORY);

View file

@ -69,7 +69,7 @@ class SpellbookEmiRecipe implements EmiRecipe, SpellbookRecipe.CraftingTreeBuild
@Override
public void addWidgets(WidgetHolder widgets) {
widgets.addTexture(SpellbookScreen.TEXTURE, 0, 0, getDisplayWidth(), getDisplayHeight(), 50, 50, 128, 128, 512, 256);
widgets.addTexture(EmiTexture.EMPTY_ARROW, 160, 65);
widgets.addTexture(Main.EMPTY_ARROW, 160, 65);
List<HexagonalCraftingGrid.Slot> grid = new ArrayList<>();
List<HexagonalCraftingGrid.Slot> gem = new ArrayList<>();

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB