fix autocrafting gui not opening

This commit is contained in:
PrototypeTrousers
2023-02-03 12:53:04 -03:00
parent 9d7dacdc29
commit 56268aba79
2 changed files with 3 additions and 2 deletions
@@ -241,7 +241,7 @@ public enum GuiBridge implements IGuiHandler {
} else if (x >= 0 && x < player.inventory.mainInventory.size()) {
it = player.inventory.getStackInSlot(x);
}
} else {
} else if (y == 1 && z == 0) {
if (stem) {
if (player.openContainer instanceof IInventorySlotAware) {
int slot = ((IInventorySlotAware) player.openContainer).getInventorySlot();
@@ -363,7 +363,7 @@ public enum GuiBridge implements IGuiHandler {
} else if (x >= 0 && x < player.inventory.mainInventory.size()) {
it = player.inventory.getStackInSlot(x);
}
} else {
} else if (y == 1 && z == 0) {
if (stem) {
if (player.openContainer instanceof IInventorySlotAware) {
int slot = ((IInventorySlotAware) player.openContainer).getInventorySlot();
@@ -56,6 +56,7 @@ import net.minecraft.util.EnumHand;
import net.minecraft.util.NonNullList;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.text.translation.I18n;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;