fix autocrafting gui not opening
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user