From 89ab488721bf53a73c63426f870db96e2975fbaa Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 22 Dec 2018 10:24:13 +1100 Subject: [PATCH] SPIGOT-4543: Jukebox playing calls should not use legacy data --- .../java/org/bukkit/craftbukkit/block/CraftJukebox.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java b/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java index 57160a9495..ea9951603a 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java @@ -63,15 +63,15 @@ public class CraftJukebox extends CraftBlockEntityState imple this.getSnapshot().setRecord(new ItemStack(CraftMagicNumbers.getItem(record), 1)); if (record == Material.AIR) { - setRawData((byte) 0); + getHandle().set(BlockJukeBox.HAS_RECORD, false); } else { - setRawData((byte) 1); + getHandle().set(BlockJukeBox.HAS_RECORD, true); } } @Override public boolean isPlaying() { - return getRawData() == 1; + return getHandle().get(BlockJukeBox.HAS_RECORD); } @Override