Don't reduce stack size when re-adding previous recipe in creative. (#3187)

* Don't reduce stack size when re-adding previous recipe in creative.

* Don't require any items at all if in creative.
This commit is contained in:
Eutro authored and GitHub committed 2020-02-25 15:34:34 -06:00
1 parent 6f02a65c60
commit 114a684578
1 file changed
+2 -2
@@ -223,8 +223,8 @@ public class TileAltar extends TileSimpleInventory implements IPetalApothecary,
for(int i = 0; i < player.inventory.getSizeInventory(); i++) {
ItemStack pstack = player.inventory.getStackInSlot(i);
if(!pstack.isEmpty() && pstack.isItemEqual(stack) && ItemStack.areItemStackTagsEqual(stack, pstack)) {
inv.setStackInSlot(index, pstack.split(1));
if(player.isCreative() || (!pstack.isEmpty() && pstack.isItemEqual(stack) && ItemStack.areItemStackTagsEqual(stack, pstack))) {
inv.setStackInSlot(index, player.isCreative() ? stack.copy() : pstack.split(1));
didAny = true;
index++;
break;