mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||
|
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
|
||
|
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
|
||
|
@@ -0,0 +0,0 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
||
|
case BURST:
|
||
|
return 4;
|
||
|
default:
|
||
|
- throw new AssertionError(type);
|
||
|
+ throw new IllegalStateException(type.toString()); // Spigot
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@@ -0,0 +0,0 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
||
|
case 4:
|
||
|
return Type.BURST;
|
||
|
default:
|
||
|
- throw new AssertionError(nbt);
|
||
|
+ throw new IllegalStateException(Integer.toString(nbt)); // Spigot
|
||
|
}
|
||
|
}
|
||
|
|
||
|
--
|