From 1d3a5b9292f5104cd1976f095cad1f74d8519dcc Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 22 Dec 2018 10:24:13 +1100 Subject: [PATCH] SPIGOT-4543: Jukebox playing calls should not use legacy data By: md_5 --- .../java/org/bukkit/craftbukkit/block/CraftJukebox.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 57160a9495..ea9951603a 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 @@ -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