mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-18 08:36:13 +01:00
cab333b217
Don't send requests of every player was found in the global api cache SpigotMC/Spigot@841270ff1e Correctly set the response code for the cached lookups and return the ... SpigotMC/Spigot@f170b7899c Don't try and re-set the global api cache on reload SpigotMC/Spigot@b410a00a66 Use a compile time sneaky throw hack. SpigotMC/Spigot@508462b96b Fix a missed rename in WorldGenGroundBush SpigotMC/Spigot@0614d8fae9
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 28e812c423844da20c528ce9b11b5ebd8a918754 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 0f7da6b..5a409ae 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.9.1
|
|
|