3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00
Paper/CraftBukkit-Patches/0032-Firework-Meta-Crash-Fix.patch

32 Zeilen
1.1 KiB
Diff

2014-03-26 21:34:47 +01:00
From b4c0a5523f7caf1cbbcbe3f85a282252616f8c47 Mon Sep 17 00:00:00 2001
2013-06-15 13:35:04 +02: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
2013-12-01 04:40:53 +01:00
index 0f7da6b..5a409ae 100644
2013-06-15 13:35:04 +02:00
--- 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
}
}
--
2014-03-26 21:34:47 +01:00
1.8.5.2.msysgit.0
2013-06-15 13:35:04 +02:00