mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
CraftMetaFirework: AssertionError -> IllegalArgumentException
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c0ef3e197d
commit
70c2a1b52a
1 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
|||
case BURST:
|
||||
return 4;
|
||||
default:
|
||||
throw new AssertionError(type);
|
||||
throw new IllegalArgumentException("Unknown effect type " + type);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,7 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
|||
case 4:
|
||||
return Type.BURST;
|
||||
default:
|
||||
throw new AssertionError(nbt);
|
||||
throw new IllegalArgumentException("Unknown effect type " + nbt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue