CraftMetaFirework: AssertionError -> IllegalArgumentException

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2017-11-17 10:15:14 +11:00
parent c0ef3e197d
commit 70c2a1b52a

View file

@ -154,7 +154,7 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
case BURST: case BURST:
return 4; return 4;
default: default:
throw new AssertionError(type); throw new IllegalArgumentException("Unknown effect type " + type);
} }
} }
@ -171,7 +171,7 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
case 4: case 4:
return Type.BURST; return Type.BURST;
default: default:
throw new AssertionError(nbt); throw new IllegalArgumentException("Unknown effect type " + nbt);
} }
} }