2015-05-25 12:05:40 +00:00
|
|
|
From 41f2230ba8fcd520bd55fc2feb74544ccb4557ef Mon Sep 17 00:00:00 2001
|
2014-07-21 20:46:54 +00: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
|
2015-02-28 11:36:22 +00:00
|
|
|
index 208d426..09eeb43 100644
|
2014-07-21 20:46:54 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/ContainerEnchantTable.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/ContainerEnchantTable.java
|
2015-02-28 11:36:22 +00:00
|
|
|
@@ -336,7 +336,11 @@ public class ContainerEnchantTable extends Container {
|
2014-07-21 20:46:54 +00:00
|
|
|
((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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
2015-05-09 20:23:26 +00:00
|
|
|
2.1.4
|
2014-07-21 20:46:54 +00:00
|
|
|
|