Add NullCheck for #657 fixes #663

This commit is contained in:
Matsv 2017-05-14 14:47:00 +02:00
parent 81ea78e003
commit c92fcc9f9a

View File

@ -97,7 +97,7 @@ public class ItemRewriter {
}
}
}
if (item.getAmount() <= 0) item.setAmount((byte) 1);
if (item != null && item.getAmount() <= 0) item.setAmount((byte) 1);
}
public static void toServer(Item item) {