2013-07-02 03:21:57 +00:00
|
|
|
From 1848a09ed6e1261a6e429008e4dc6a72f122ace7 Mon Sep 17 00:00:00 2001
|
2013-06-15 11:35:04 +00:00
|
|
|
From: md_5 <md_5@live.com.au>
|
|
|
|
Date: Sat, 15 Jun 2013 21:34:48 +1000
|
|
|
|
Subject: [PATCH] Firework Meta Crash Fix
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
|
|
|
|
index 3f9e4a3..93a1ce0 100644
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
|
|
|
|
@@ -145,7 +145,7 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
|
|
|
case BURST:
|
|
|
|
return 4;
|
|
|
|
default:
|
|
|
|
- throw new AssertionError(type);
|
|
|
|
+ throw new IllegalStateException(type.toString()); // Spigot
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@@ -162,7 +162,7 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
|
|
|
case 4:
|
|
|
|
return Type.BURST;
|
|
|
|
default:
|
|
|
|
- throw new AssertionError(nbt);
|
|
|
|
+ throw new IllegalStateException(Integer.toString(nbt)); // Spigot
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
|
|
|
1.8.1.2
|
|
|
|
|