3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

SPIGOT-4968: Jukebox.setPlaying(null) causes error

Dieser Commit ist enthalten in:
md_5 2019-05-21 12:09:42 +10:00
Ursprung 0e4ca96e47
Commit 6984fc4f83

Datei anzeigen

@ -20,7 +20,7 @@ public class CraftEffect {
datavalue = ((Potion) data).toDamageValue() & 0x3F; datavalue = ((Potion) data).toDamageValue() & 0x3F;
break; break;
case RECORD_PLAY: case RECORD_PLAY:
Validate.isTrue(((Material) data).isRecord(), "Invalid record type!"); Validate.isTrue(data == Material.AIR || ((Material) data).isRecord(), "Invalid record type!");
datavalue = Item.getId(CraftMagicNumbers.getItem((Material) data)); datavalue = Item.getId(CraftMagicNumbers.getItem((Material) data));
break; break;
case SMOKE: case SMOKE: