From ace33e4d68852840d5098f610ce765d8e9e7b2e3 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 16 Apr 2017 08:26:51 +1000 Subject: [PATCH] Make CraftJukebox.isPlaying locally consistent By: md_5 --- .../main/java/org/bukkit/craftbukkit/block/CraftJukebox.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java index 4df3edf294..25365f1189 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java +++ b/paper-server/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);