398f6983bd
Make "moved too quickly" limit configurable SpigotMC/Spigot@99a0a640e8 Undeprecate Player#updateInventory()V SpigotMC/Spigot@5c32e1cb48 Fetch complete profile for skull items, similarly to TileEntitySkull. SpigotMC/Spigot@33d758773e Move getDouble into the Spigot Configuration patch SpigotMC/Spigot@b5dd202af1 Add missing particle to particle API SpigotMC/Spigot@273c64bbad Log debug levels to the log file. SpigotMC/Spigot@348eae75f4 Fix PlayerItemDamageEvent (we already had this #badupstreamrelations) SpigotMC/Spigot@e207ea23cd Move hopper patch to top for PR180 SpigotMC/Spigot@abb775108d Don't be so spammy on Java 6 SpigotMC/Spigot@5abb82b1ca Apply NBTReadLimiter to more things SpigotMC/Spigot@408944e9f5
28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
From aed01ff3efe421387046f6c445da2ccc54ed929b Mon Sep 17 00:00:00 2001
|
|
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
|
|
|