Special case record placement into juke boxes as they update their tile.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2015-04-10 21:24:34 +10:00
parent b3ac41214f
commit 5093b8e50a
2 changed files with 33 additions and 8 deletions

View File

@@ -0,0 +1,17 @@
--- ../work/decompile-73f3c166/net/minecraft/server/ItemRecord.java 2015-04-10 21:23:03.674603339 +1000
+++ src/main/java/net/minecraft/server/ItemRecord.java 2015-04-10 21:23:03.678603362 +1000
@@ -22,10 +22,14 @@
if (world.isClientSide) {
return true;
} else {
+ // CraftBukkit Start
+ /*
((BlockJukeBox) Blocks.JUKEBOX).a(world, blockposition, iblockdata, itemstack);
world.a((EntityHuman) null, 1005, blockposition, Item.getId(this));
--itemstack.count;
entityhuman.b(StatisticList.X);
+ */
+ // CraftBukkit End
return true;
}
} else {