Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Make CraftJukebox.isPlaying locally consistent
Dieser Commit ist enthalten in:
Ursprung
473febc73a
Commit
e17c3d285b
@ -47,10 +47,12 @@ public class CraftJukebox extends CraftBlockState implements Jukebox {
|
|||||||
}
|
}
|
||||||
jukebox.update();
|
jukebox.update();
|
||||||
if (record == Material.AIR) {
|
if (record == Material.AIR) {
|
||||||
|
setRawData((byte) 0);
|
||||||
world.getHandle().setTypeAndData(new BlockPosition(getX(), getY(), getZ()),
|
world.getHandle().setTypeAndData(new BlockPosition(getX(), getY(), getZ()),
|
||||||
Blocks.JUKEBOX.getBlockData()
|
Blocks.JUKEBOX.getBlockData()
|
||||||
.set(BlockJukeBox.HAS_RECORD, false), 3);
|
.set(BlockJukeBox.HAS_RECORD, false), 3);
|
||||||
} else {
|
} else {
|
||||||
|
setRawData((byte) 1);
|
||||||
world.getHandle().setTypeAndData(new BlockPosition(getX(), getY(), getZ()),
|
world.getHandle().setTypeAndData(new BlockPosition(getX(), getY(), getZ()),
|
||||||
Blocks.JUKEBOX.getBlockData()
|
Blocks.JUKEBOX.getBlockData()
|
||||||
.set(BlockJukeBox.HAS_RECORD, true), 3);
|
.set(BlockJukeBox.HAS_RECORD, true), 3);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren