mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
CraftMetaFirework: AssertionError -> IllegalArgumentException
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user