Fixed NPE

This commit is contained in:
CrazyPants committed 2014-06-30 09:58:49 +08:00
1 parent 1fbb9b33b4
commit c579165d81
1 file changed
+1 -1
+1 -1
View File
@@ -163,7 +163,7 @@ public class Util {
}
public static void dropItems(World world, ItemStack stack, int x, int y, int z, boolean doRandomSpread) {
if(stack.stackSize <= 0) {
if(stack == null || stack.stackSize <= 0) {
return;
}