mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-05 01:10:19 -05:00
SPIGOT-4968: Jukebox.setPlaying(null) causes error
This commit is contained in:
1 parent
0e4ca96e47
commit
6984fc4f83
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user