summaryrefslogtreecommitdiffstats
path: root/nms-patches/ItemRecord.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/ItemRecord.patch')
-rw-r--r--nms-patches/ItemRecord.patch19
1 files changed, 6 insertions, 13 deletions
diff --git a/nms-patches/ItemRecord.patch b/nms-patches/ItemRecord.patch
index 0698a9df..ef571447 100644
--- a/nms-patches/ItemRecord.patch
+++ b/nms-patches/ItemRecord.patch
@@ -1,17 +1,10 @@
--- a/net/minecraft/server/ItemRecord.java
+++ b/net/minecraft/server/ItemRecord.java
-@@ -22,10 +22,14 @@
- if (world.isClientSide) {
- return true;
- } else {
-+ // CraftBukkit Start
-+ /*
+@@ -22,6 +22,7 @@
+
+ if (iblockdata.getBlock() == Blocks.JUKEBOX && !((Boolean) iblockdata.get(BlockJukeBox.HAS_RECORD)).booleanValue()) {
+ if (!world.isClientSide) {
++ if (true) return EnumInteractionResult.SUCCESS; // CraftBukkit - handled in ItemStack
((BlockJukeBox) Blocks.JUKEBOX).a(world, blockposition, iblockdata, itemstack);
- world.a((EntityHuman) null, 1005, blockposition, Item.getId(this));
+ world.a((EntityHuman) null, 1010, blockposition, Item.getId(this));
--itemstack.count;
- entityhuman.b(StatisticList.X);
-+ */
-+ // CraftBukkit End
- return true;
- }
- } else {