mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user