mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
fix: register recipes when speed is not 0
This commit is contained in:
parent
c6c02ccc48
commit
8d844254c2
@ -74,8 +74,6 @@ public abstract class AContainer extends SlimefunItem implements InventoryBlock,
|
|||||||
processing.remove(b);
|
processing.remove(b);
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
registerDefaultRecipes();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
||||||
@ -239,6 +237,8 @@ public abstract class AContainer extends SlimefunItem implements InventoryBlock,
|
|||||||
warn("Make sure to call '" + getClass().getSimpleName() + "#setProcessingSpeed(...)' before registering!");
|
warn("Make sure to call '" + getClass().getSimpleName() + "#setProcessingSpeed(...)' before registering!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
registerDefaultRecipes();
|
||||||
|
|
||||||
if (getCapacity() > 0 && getEnergyConsumption() > 0 && getSpeed() > 0) {
|
if (getCapacity() > 0 && getEnergyConsumption() > 0 && getSpeed() > 0) {
|
||||||
super.register(addon);
|
super.register(addon);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user