2020-10-11 19:47:45 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: chickeneer <emcchickeneer@gmail.com>
|
|
|
|
Date: Wed, 18 Mar 2020 00:07:46 -0500
|
|
|
|
Subject: [PATCH] MC-147729: Drop items that are extra from a crafting recipe
|
|
|
|
|
|
|
|
|
2021-03-16 08:19:45 +01:00
|
|
|
diff --git a/src/main/java/net/minecraft/recipebook/AutoRecipe.java b/src/main/java/net/minecraft/recipebook/AutoRecipe.java
|
|
|
|
index 897f7270bae601b39d74d6a56a60f0ac7f1f6090..3bcd2c5a5352b8fb92d09b0a6914a1013569c8d6 100644
|
|
|
|
--- a/src/main/java/net/minecraft/recipebook/AutoRecipe.java
|
|
|
|
+++ b/src/main/java/net/minecraft/recipebook/AutoRecipe.java
|
|
|
|
@@ -71,7 +71,12 @@ public class AutoRecipe<C extends IInventory> implements AutoRecipeAbstract<Inte
|
2020-10-11 19:47:45 +02:00
|
|
|
if (j == -1) {
|
|
|
|
j = this.c.getFirstEmptySlotIndex();
|
|
|
|
}
|
|
|
|
-
|
|
|
|
+ // Paper start
|
|
|
|
+ if (j == -1) {
|
|
|
|
+ this.c.player.drop(itemstack.cloneItemStack(), false);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
ItemStack itemstack1 = itemstack.cloneItemStack();
|
|
|
|
|
|
|
|
itemstack1.setCount(1);
|