3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-22 22:38:17 +01:00
Paper/nms-patches/ItemRecord.patch

11 Zeilen
594 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
((BlockJukeBox) Blocks.JUKEBOX).a(world, blockposition, iblockdata, itemstack);
2016-02-29 22:32:46 +01:00
world.a((EntityHuman) null, 1010, blockposition, Item.getId(this));
--itemstack.count;