From 25066058f13eb8dd1f366b6d8a27ba0a16ae42e9 Mon Sep 17 00:00:00 2001 From: Brianna Date: Mon, 27 May 2019 08:21:02 -0400 Subject: [PATCH] Fix for autocrafting throwing an exception. --- src/main/java/com/songoda/epichoppers/hopper/Hopper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/epichoppers/hopper/Hopper.java b/src/main/java/com/songoda/epichoppers/hopper/Hopper.java index 13fa073..92218d3 100644 --- a/src/main/java/com/songoda/epichoppers/hopper/Hopper.java +++ b/src/main/java/com/songoda/epichoppers/hopper/Hopper.java @@ -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() {