Paper/nms-patches/ItemRecord.patch

11 lines
558 B
Diff
Raw Normal View History

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/ItemRecord.java
+++ b/net/minecraft/server/ItemRecord.java
2018-07-15 02:00:00 +02:00
@@ -34,6 +34,7 @@
ItemStack itemstack = itemactioncontext.getItemStack();
2016-02-29 22:32:46 +01:00
if (!world.isClientSide) {
+ if (true) return EnumInteractionResult.SUCCESS; // CraftBukkit - handled in ItemStack
2018-07-15 02:00:00 +02:00
((BlockJukeBox) Blocks.JUKEBOX).a((GeneratorAccess) world, blockposition, iblockdata, itemstack);
world.a((EntityHuman) null, 1010, blockposition, Item.getId(this));
itemstack.subtract(1);