mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-23 21:49:49 +00:00
Begin 1.11 (compiles, does not run yet)
This commit is contained in:
1 parent
5310003659
commit
424fdaaf48
164 files changed
+1396
-1312
No files matched your search
@@ -148,10 +148,10 @@ public abstract class Designer {
|
||||
if (playerInv.getItemStack() == null) {
|
||||
playerInv.setItemStack(this.doRecipe(true));
|
||||
} else if (playerInv.getItemStack().isItemEqual(recipe) && ItemStack.areItemStackTagsEqual(playerInv.getItemStack(), recipe)) {
|
||||
final int fit = recipe.getMaxStackSize() - (recipe.stackSize + playerInv.getItemStack().stackSize);
|
||||
final int fit = recipe.getMaxStackSize() - (recipe.getCount() + playerInv.getItemStack().getCount());
|
||||
if (fit >= 0) {
|
||||
this.doRecipe(true);
|
||||
recipe.stackSize += playerInv.getItemStack().stackSize;
|
||||
recipe.grow(playerInv.getItemStack().getCount());
|
||||
playerInv.setItemStack(recipe);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user