mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Small fix
This commit is contained in:
parent
b6c3021355
commit
2777ec9407
@ -22,20 +22,14 @@ public class EnhancedFurnace extends SlimefunItem {
|
||||
this.fortune = fortune - 1;
|
||||
|
||||
addItemHandler(new BlockTicker() {
|
||||
|
||||
@Override
|
||||
public void tick(Block b, SlimefunItem item, Config data) {
|
||||
try {
|
||||
if (!(b.getState() instanceof Furnace)) {
|
||||
return;
|
||||
}
|
||||
if (b.getState() instanceof Furnace)
|
||||
if (((Furnace) b.getState()).getCookTime() > 0) {
|
||||
Furnace furnace = (Furnace) b.getState();
|
||||
furnace.setCookTime((short) (furnace.getCookTime() + getSpeed() * 10));
|
||||
furnace.update(true, false);
|
||||
}
|
||||
} catch(NullPointerException x) {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user