2014-08-31 20:56:05 +02:00
|
|
|
From afa18162ec0cd28a5513fa02f86d3132cd7fac57 Mon Sep 17 00:00:00 2001
|
2014-07-21 22:46:54 +02:00
|
|
|
From: drXor <mcyoungsota@gmail.com>
|
|
|
|
Date: Thu, 17 Jul 2014 21:13:15 -0400
|
|
|
|
Subject: [PATCH] Fix for enchanting table wiping meta when placing stacked
|
|
|
|
items
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/ContainerEnchantTable.java b/src/main/java/net/minecraft/server/ContainerEnchantTable.java
|
|
|
|
index 5f948e4..af3aa1d 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/ContainerEnchantTable.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/ContainerEnchantTable.java
|
|
|
|
@@ -249,7 +249,11 @@ public class ContainerEnchantTable extends Container {
|
|
|
|
((Slot) this.c.get(0)).set(itemstack1.cloneItemStack());
|
|
|
|
itemstack1.count = 0;
|
|
|
|
} else if (itemstack1.count >= 1) {
|
|
|
|
- ((Slot) this.c.get(0)).set(new ItemStack(itemstack1.getItem(), 1, itemstack1.getData()));
|
|
|
|
+ // Spigot start
|
|
|
|
+ ItemStack clone = itemstack1.cloneItemStack();
|
|
|
|
+ clone.count = 1;
|
|
|
|
+ ((Slot) this.c.get(0)).set(clone);
|
|
|
|
+ // Spigot end
|
|
|
|
--itemstack1.count;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|