fix hover location in preview

This commit is contained in:
way2muchnoise
2016-10-23 16:45:03 +02:00
parent 681d47c5d7
commit 57152c35f0

View File

@@ -123,7 +123,7 @@ public class GuiCraftingPreview extends GuiBase {
stack.draw(x, y + 5, drawers);
if (inBounds(x, y, 16, 16, mouseX, mouseY)) {
if (inBounds(x + 5, y + 7, 16, 16, mouseX, mouseY)) {
hoveringStack = stack.getId().equals(CraftingPreviewElementItemStack.ID) ? (ItemStack) stack.getElement() : null;
if (hoveringStack == null) {
hoveringFluid = stack.getId().equals(CraftingPreviewElementFluidStack.ID) ? (FluidStack) stack.getElement() : null;