summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-11-17 10:15:14 +1100
committermd_5 <git@md-5.net>2017-11-17 10:23:20 +1100
commit108fc362c0af5887b8ded6e22b944c7cb6eb1de7 (patch)
tree14073351d31957dadc46f1502cf285688e9c1e15
parent685ed2eb9242a157c05ab0f0be8c103051a86ebb (diff)
downloadcraftbukkit-108fc362c0af5887b8ded6e22b944c7cb6eb1de7.tar
craftbukkit-108fc362c0af5887b8ded6e22b944c7cb6eb1de7.tar.gz
craftbukkit-108fc362c0af5887b8ded6e22b944c7cb6eb1de7.tar.lz
craftbukkit-108fc362c0af5887b8ded6e22b944c7cb6eb1de7.tar.xz
craftbukkit-108fc362c0af5887b8ded6e22b944c7cb6eb1de7.zip
CraftMetaFirework: AssertionError -> IllegalArgumentException
-rw-r--r--src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
index 8a668e9e..682c2287 100644
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
@@ -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);
}
}