mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-23 10:45:46 +01:00
Fix for autocrafting throwing an exception.
This commit is contained in:
parent
0c7341a1b4
commit
25066058f1
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user