From e17c3d285b1026811acc1df8a1299d4ad7a6953a Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 16 Apr 2017 08:26:51 +1000 Subject: [PATCH] Make CraftJukebox.isPlaying locally consistent --- src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java b/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java index 4df3edf294..25365f1189 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java @@ -47,10 +47,12 @@ public class CraftJukebox extends CraftBlockState implements Jukebox { } jukebox.update(); if (record == Material.AIR) { + setRawData((byte) 0); world.getHandle().setTypeAndData(new BlockPosition(getX(), getY(), getZ()), Blocks.JUKEBOX.getBlockData() .set(BlockJukeBox.HAS_RECORD, false), 3); } else { + setRawData((byte) 1); world.getHandle().setTypeAndData(new BlockPosition(getX(), getY(), getZ()), Blocks.JUKEBOX.getBlockData() .set(BlockJukeBox.HAS_RECORD, true), 3);