Fix for autocrafting throwing an exception.

This commit is contained in:
Brianna 2019-05-27 08:21:02 -04:00
parent 0c7341a1b4
commit 25066058f1

View File

@ -216,7 +216,8 @@ public class Hopper {
public void setAutoCrafting(ItemStack autoCrafting) {
this.autoCrafting = autoCrafting;
autoCrafting.setAmount(1);
if (autoCrafting != null)
autoCrafting.setAmount(1);
}
public TeleportTrigger getTeleportTrigger() {