Skip to content

Commit 80691cb

Browse files
committed
Drop correct item when stone cutter finished the cutting
1 parent 9b6d4c1 commit 80691cb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

patches/server/0094-Fix-MC-65198.patch

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ index ff30071f3ef37d1b28cf86e26ce4f7477335a07a..78122f7aaa095278095a57974b9906f7
4040

4141
if (this.container instanceof RecipeCraftingHolder recipeCraftingHolder) {
4242
diff --git a/src/main/java/net/minecraft/world/inventory/StonecutterMenu.java b/src/main/java/net/minecraft/world/inventory/StonecutterMenu.java
43-
index ca65965757e6f12abc972250a04817c7547bb0bd..675300ca10b2328be102a7cbc447e1c25ef12f82 100644
43+
index ca65965757e6f12abc972250a04817c7547bb0bd..dae30f13f970f5006aecaca3788963fbd8b12c58 100644
4444
--- a/src/main/java/net/minecraft/world/inventory/StonecutterMenu.java
4545
+++ b/src/main/java/net/minecraft/world/inventory/StonecutterMenu.java
4646
@@ -255,6 +255,7 @@ public class StonecutterMenu extends AbstractContainerMenu {
@@ -51,15 +51,12 @@ index ca65965757e6f12abc972250a04817c7547bb0bd..675300ca10b2328be102a7cbc447e1c2
5151
if (slot == 1) {
5252
item.onCraftedBy(itemstack1, player.level(), player);
5353
if (!this.moveItemStackTo(itemstack1, 2, 38, true)) {
54-
@@ -287,9 +288,9 @@ public class StonecutterMenu extends AbstractContainerMenu {
54+
@@ -287,7 +288,7 @@ public class StonecutterMenu extends AbstractContainerMenu {
5555
return ItemStack.EMPTY;
5656
}
5757

5858
- slot1.onTake(player, itemstack1);
5959
+ slot1.onTake(player, itemStack2); // Leaf - Fix MC-65198
6060
if (slot == 1) {
61-
- player.drop(itemstack1, false);
62-
+ player.drop(itemStack2, false); // Leaf - Fix MC-65198
61+
player.drop(itemstack1, false);
6362
}
64-
65-
this.broadcastChanges();

0 commit comments

Comments
 (0)