1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 11:45:51 +00:00

Fixed speed modifier not getting applied to Enhanced Furnaces

This commit is contained in:
John000708 2018-01-05 18:09:10 +01:00
parent fb4b3ab738
commit b6c3021355

View File

@ -30,9 +30,10 @@ public class EnhancedFurnace extends SlimefunItem {
return; return;
} }
if (((Furnace) b.getState()).getCookTime() > 0) { if (((Furnace) b.getState()).getCookTime() > 0) {
((Furnace) b.getState()).setCookTime((short) (((Furnace) b.getState()).getCookTime() + getSpeed() * 10)); Furnace furnace = (Furnace) b.getState();
furnace.setCookTime((short) (furnace.getCookTime() + getSpeed() * 10));
furnace.update(true, false);
} }
b.getState().update(true, false);
} catch(NullPointerException x) { } catch(NullPointerException x) {
} }
} }