SPIGOT-4968: Jukebox.setPlaying(null) causes error
Dieser Commit ist enthalten in:
Ursprung
0e4ca96e47
Commit
6984fc4f83
@ -20,7 +20,7 @@ public class CraftEffect {
|
||||
datavalue = ((Potion) data).toDamageValue() & 0x3F;
|
||||
break;
|
||||
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));
|
||||
break;
|
||||
case SMOKE:
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren