diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java b/src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java index 4df3edf2..25365f11 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); |