Merge pull request #47 from glen3b/patch-1
Update MinecraftReflection exception messages
Dieser Commit ist enthalten in:
Commit
a6dfa60d79
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren