3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 13:00:06 +01:00
Paper/nms-patches/ItemRecord.patch

11 Zeilen
558 B
Diff

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);