diff --git a/build.gradle b/build.gradle index 783f614..bfcb06b 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. -version = "1.12-forge14.21.0.2375-1.1" +version = "1.12-forge14.21.1.2387-1.1" group = "de.guntram.mcmod.easiercrafting" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "easiercrafting" @@ -21,7 +21,7 @@ compileJava { } minecraft { - version = "1.12-14.21.0.2375" + version = "1.12-14.21.1.2387" runDir = "run" // the mappings can be changed at any time, and must be in the following format. diff --git a/src/main/java/de/guntram/mcmod/easiercrafting/RecipeBook.java b/src/main/java/de/guntram/mcmod/easiercrafting/RecipeBook.java index 825024e..e84ba67 100644 --- a/src/main/java/de/guntram/mcmod/easiercrafting/RecipeBook.java +++ b/src/main/java/de/guntram/mcmod/easiercrafting/RecipeBook.java @@ -424,9 +424,10 @@ public void mouseClicked(int mouseX, int mouseY, int mouseButton, int guiLeft, i Slot invitem=container.inventorySlots.getSlot(slot+firstInventorySlotNo); ItemStack slotcontent=invitem.getStack(); if (canActAsIngredient(ingr, slotcontent)) { + // System.out.println("craftslot is "+craftslot+", first is "+firstCraftSlot+", rowadjust is "+rowadjust+", transferring "+remaining+" items"); // TODO: && (isempty(craftslot) || ismergeable(slot,craftslot)) transfer(slot+firstInventorySlotNo, craftslot+firstCraftSlot+rowadjust, remaining); - remaining=maxCraftableStacks-container.inventorySlots.getSlot(craftslot+firstCraftSlot).getStack().getCount(); + remaining=maxCraftableStacks-container.inventorySlots.getSlot(craftslot+firstCraftSlot+rowadjust).getStack().getCount(); } } if (underMouse instanceof ShapedRecipes && ((craftslot+1)%((ShapedRecipes)underMouse).recipeWidth)==0) {