summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-04-16 08:26:51 +1000
committermd_5 <git@md-5.net>2017-04-16 08:26:51 +1000
commite17c3d285b1026811acc1df8a1299d4ad7a6953a (patch)
tree00beabab3f53036ac008bfa63fb80cc7ffc8a299 /src/main
parent473febc73a27e4952679dbfafe9977acc971e7cd (diff)
downloadcraftbukkit-e17c3d285b1026811acc1df8a1299d4ad7a6953a.tar
craftbukkit-e17c3d285b1026811acc1df8a1299d4ad7a6953a.tar.gz
craftbukkit-e17c3d285b1026811acc1df8a1299d4ad7a6953a.tar.lz
craftbukkit-e17c3d285b1026811acc1df8a1299d4ad7a6953a.tar.xz
craftbukkit-e17c3d285b1026811acc1df8a1299d4ad7a6953a.zip
Make CraftJukebox.isPlaying locally consistent
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/block/CraftJukebox.java2
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);