Add NullCheck for #657 fixes #663

This commit is contained in:
Matsv 2017-05-14 14:47:00 +02:00
parent 412202e105
commit 8d66ce776c

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) {