mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-4968: Jukebox.setPlaying(null) causes error
By: md_5 <git@md-5.net>
This commit is contained in:
parent
0bab608be7
commit
817d83e1bb
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue