[Change] Updated EMI dependency (#128)

This commit is contained in:
Frank 2023-01-28 14:04:18 +01:00
parent 2d365daae6
commit 533b269f3c
2 changed files with 12 additions and 13 deletions

View file

@ -22,6 +22,6 @@ patchouli_version=1.19-73-FABRIC
bclib_version=2.1.4 bclib_version=2.1.4
rei_version=9.1.500 rei_version=9.1.500
jei_version=11.1.0.235 jei_version=11.1.0.235
emi_version=0.3.0+1.19 emi_version=0.4.3+1.19
trinkets_version=3.4.0 trinkets_version=3.4.0
cca_version=5.0.0-beta.1 cca_version=5.0.0-beta.1

View file

@ -7,7 +7,6 @@ import com.mojang.blaze3d.vertex.PoseStack;
import net.minecraft.client.gui.GuiComponent; import net.minecraft.client.gui.GuiComponent;
import net.minecraft.client.renderer.GameRenderer; import net.minecraft.client.renderer.GameRenderer;
import dev.emi.emi.EmiClient;
import dev.emi.emi.EmiConfig; import dev.emi.emi.EmiConfig;
import dev.emi.emi.EmiRenderHelper; import dev.emi.emi.EmiRenderHelper;
import dev.emi.emi.api.render.EmiRender; import dev.emi.emi.api.render.EmiRender;
@ -42,17 +41,17 @@ public class TransparentSlotWidget extends SlotWidget {
} }
} }
if (this.getRecipe() == null // if (this.getRecipe() == null
&& EmiClient.availableForCrafting.containsKey(this.getStack()) // && EmiClient.availableForCrafting.containsKey(this.getStack())
&& !this.getStack().isEmpty() // && !this.getStack().isEmpty()
&& !(Boolean) EmiClient.availableForCrafting.get(this.getStack())) { // && !(Boolean) EmiClient.availableForCrafting.get(this.getStack())) {
GuiComponent.fill( // GuiComponent.fill(
matrices, // matrices,
bounds.x(), bounds.y(), // bounds.x(), bounds.y(),
bounds.x() + bounds.width(), bounds.y() + bounds.height(), // bounds.x() + bounds.width(), bounds.y() + bounds.height(),
0x44FF0000 // 0x44FF0000
); // );
} // }
int xOff = (width - 16) / 2; int xOff = (width - 16) / 2;
int yOff = (height - 16) / 2; int yOff = (height - 16) / 2;