ACTUALLY fix the NPE this time.

This commit is contained in:
GJ 2013-02-01 15:56:23 -05:00
parent f3b119b91b
commit d68dfe2a32

View File

@ -344,7 +344,7 @@ public final class Misc {
*/
public static void dropItem(Location location, ItemStack itemStack) {
if (itemStack.getType() == null || itemStack.getType() == Material.AIR) {
if (itemStack == null || itemStack.getType() == Material.AIR) {
return;
}