mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
MC-147729: Drop items that are extra from a crafting recipe
This commit is contained in:
parent
976c295514
commit
024f4f2fce
1 changed files with 24 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
|||
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
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/AutoRecipe.java b/src/main/java/net/minecraft/server/AutoRecipe.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/AutoRecipe.java
|
||||
+++ b/src/main/java/net/minecraft/server/AutoRecipe.java
|
||||
@@ -0,0 +0,0 @@ public class AutoRecipe<C extends IInventory> implements AutoRecipeAbstract<Inte
|
||||
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);
|
Loading…
Reference in a new issue