mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-4543: Jukebox playing calls should not use legacy data
By: md_5 <git@md-5.net>
This commit is contained in:
parent
b33f268413
commit
1d3a5b9292
1 changed files with 3 additions and 3 deletions
|
@ -63,15 +63,15 @@ public class CraftJukebox extends CraftBlockEntityState<TileEntityJukeBox> 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
|
||||
|
|
Loading…
Add table
Reference in a new issue