Archiviert
13
0

Merge pull request #47 from glen3b/patch-1

Update MinecraftReflection exception messages
Dieser Commit ist enthalten in:
Kristian S. Stangeland 2014-05-03 19:25:35 +02:00
Commit a6dfa60d79

Datei anzeigen

@ -1820,7 +1820,7 @@ public class MinecraftReflection {
if (!craftItemStackFailed) if (!craftItemStackFailed)
return getBukkitItemByMethod(minecraftItemStack); return getBukkitItemByMethod(minecraftItemStack);
throw new RuntimeException("Cannot find CraftItemStack(net.mineraft.server.ItemStack).", e); throw new RuntimeException("Cannot find CraftItemStack(net.minecraft.server.ItemStack).", e);
} }
} }
@ -1838,7 +1838,7 @@ public class MinecraftReflection {
craftNMSMethod = getCraftItemStackClass().getMethod("asCraftMirror", minecraftItemStack.getClass()); craftNMSMethod = getCraftItemStackClass().getMethod("asCraftMirror", minecraftItemStack.getClass());
} catch (Exception e) { } catch (Exception e) {
craftItemStackFailed = true; craftItemStackFailed = true;
throw new RuntimeException("Cannot find CraftItemStack.asCraftMirror(net.mineraft.server.ItemStack).", e); throw new RuntimeException("Cannot find CraftItemStack.asCraftMirror(net.minecraft.server.ItemStack).", e);
} }
} }