Skip to content

Commit 5f04d95

Browse files
committed
I accidentally created a more critical anvil bug
1 parent c31edd6 commit 5f04d95

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

merged.patch

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16374,7 +16374,7 @@
1637416374
public final String title;
1637516375
--- /dev/null
1637616376
+++ net/minecraft/game/world/block/AnvilContainer.java
16377-
@@ -1,0 +1,111 @@
16377+
@@ -1,0 +1,115 @@
1637816378
+package net.minecraft.game.world.block;
1637916379
+
1638016380
+import net.minecraft.game.entity.player.*;
@@ -16454,19 +16454,23 @@
1645416454
+ if(var3 != null && var3.hasStack()) {
1645516455
+ ItemStack var4 = var3.getStack();
1645616456
+ var2 = var4.copy();
16457-
+ if (var1 >= 0 && var1 <= 1) {
16458-
+ this.putStack(var4, 3, 39, true);
16459-
+ } else if (var1 >= 3 && var1 <= 38) {
16457+
+ if (var1 >= 3 && var1 <= 38) {
1646016458
+ this.putStack(var4, 0, 2, false);
1646116459
+ } else {
16462-
+ this.putStack(var4, 3, 39, false);
16460+
+ this.putStack(var4, 3, 39, true);
1646316461
+ }
1646416462
+
1646516463
+ if(var4.count == 0) {
1646616464
+ var3.putStack((ItemStack)null);
1646716465
+ } else {
1646816466
+ var3.onSlotChanged();
1646916467
+ }
16468+
+
16469+
+ if(var4.count == var2.count) {
16470+
+ return null;
16471+
+ }
16472+
+
16473+
+ var3.onPickupFromSlot(var4);
1647016474
+ }
1647116475
+
1647216476
+ return var2;

0 commit comments

Comments
 (0)