13
0
geforkt von Mirrors/Paper

SPIGOT-4543: Jukebox playing calls should not use legacy data

Dieser Commit ist enthalten in:
md_5 2018-12-22 10:24:13 +11:00
Ursprung 6ff5a64c25
Commit 89ab488721

Datei anzeigen

@ -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