mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Fixed speed modifier not getting applied to Enhanced Furnaces
This commit is contained in:
parent
fb4b3ab738
commit
b6c3021355
@ -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) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user