diff options
author | chickeneer <[email protected]> | 2020-10-11 14:18:11 -0400 |
---|---|---|
committer | Aikar <[email protected]> | 2020-10-11 14:18:11 -0400 |
commit | dd276c632c5b49f8d8c6a3db80676d9a14cf7550 (patch) | |
tree | fe15b83035d00eb95494f5f5311f63469d2596ce | |
parent | cebec202f85651f7a700e2af55c926d55ff4fc30 (diff) | |
download | Paper-dd276c632c5b49f8d8c6a3db80676d9a14cf7550.tar.gz Paper-dd276c632c5b49f8d8c6a3db80676d9a14cf7550.zip |
MC-147729: Drop items that are extra from a crafting recipe (#1766)
-rw-r--r-- | Spigot-Server-Patches/0557-MC-147729-Drop-items-that-are-extra-from-a-crafting-.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0557-MC-147729-Drop-items-that-are-extra-from-a-crafting-.patch b/Spigot-Server-Patches/0557-MC-147729-Drop-items-that-are-extra-from-a-crafting-.patch new file mode 100644 index 0000000000..b3e731de61 --- /dev/null +++ b/Spigot-Server-Patches/0557-MC-147729-Drop-items-that-are-extra-from-a-crafting-.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: chickeneer <[email protected]> +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 dbc03cfc12ee8f8ff57668dc72be734056e5a996..a47a48cd067be4487c2e0683b6dfd2097498d9cc 100644 +--- a/src/main/java/net/minecraft/server/AutoRecipe.java ++++ b/src/main/java/net/minecraft/server/AutoRecipe.java +@@ -60,7 +60,12 @@ 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); |