From 60f183ba912a99a87bb95409a83abccf722c3a1b Mon Sep 17 00:00:00 2001 From: Intybyte Date: Tue, 12 Nov 2024 11:15:59 +0100 Subject: [PATCH] Fix init --- .../Objects/SlimefunItem/abstractItems/MachineFuel.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/me/mrCookieSlime/Slimefun/Objects/SlimefunItem/abstractItems/MachineFuel.java b/src/main/java/me/mrCookieSlime/Slimefun/Objects/SlimefunItem/abstractItems/MachineFuel.java index 202366baa8..6d1c0fcbed 100644 --- a/src/main/java/me/mrCookieSlime/Slimefun/Objects/SlimefunItem/abstractItems/MachineFuel.java +++ b/src/main/java/me/mrCookieSlime/Slimefun/Objects/SlimefunItem/abstractItems/MachineFuel.java @@ -44,8 +44,7 @@ public MachineFuel(int seconds, SlimefunItemStack fuel, SlimefunItemStack output this.ticks = seconds * 2; this.fuel = fuel.item(); this.wrapper = ItemStackWrapper.wrap(this.fuel); - if (output != null) - this.output = output.item(); + this.output = output != null ? output.item() : null; } public ItemStack getInput() {