Paper/nms-patches/ItemRecord.patch

11 Zeilen
539 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/ItemRecord.java
+++ b/net/minecraft/server/ItemRecord.java
2016-02-29 22:32:46 +01:00
@@ -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
2016-11-17 02:41:03 +01:00
ItemStack itemstack = entityhuman.b(enumhand);
((BlockJukeBox) Blocks.JUKEBOX).a(world, blockposition, iblockdata, itemstack);