2015-01-05 04:32:01 +01:00
|
|
|
From 257a0378e77c4c2f6ba5d0b84829cd3d7c2a152b 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
|
2014-11-29 01:06:26 +01:00
|
|
|
index 51cee69..ef8d05c 100644
|
2014-07-21 22:46:54 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/ContainerEnchantTable.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/ContainerEnchantTable.java
|
2014-11-28 02:17:45 +01:00
|
|
|
@@ -311,7 +311,11 @@ public class ContainerEnchantTable extends Container {
|
2014-07-21 22:46:54 +02: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
2014-11-28 02:17:45 +01:00
|
|
|
2.1.0
|
2014-07-21 22:46:54 +02:00
|
|
|
|