Fix end stone smelter not giving exp on shift-click

This is a one character buggfix for a bug that prevented players from
getting exp when shift-clicking the output slot to retrieve the smelted
item. See this for the original Forge issue that made me aware of the
bug: https://github.com/Beethoven92/BetterEndForge/issues/85
This commit is contained in:
vemerion 2021-04-21 15:53:09 +02:00
parent 056a23beb9
commit 505acbb56b

View file

@ -128,7 +128,7 @@ public class EndStoneSmelterScreenHandler extends RecipeBookMenu<Container> {
ItemStack itemStack2 = slot.getItem();
itemStack = itemStack2.copy();
if (index == 3) {
if (moveItemStackTo(itemStack2, 4, 40, true)) {
if (!moveItemStackTo(itemStack2, 4, 40, true)) {
return ItemStack.EMPTY;
}
slot.onQuickCraft(itemStack2, itemStack);