Small cleanup

This commit is contained in:
paulevsGitch 2021-11-19 17:55:34 +03:00
parent b2ba2976dd
commit 69d11c0e5a

View file

@ -7,14 +7,14 @@ import ru.bclib.mixin.common.ComposterBlockAccessor;
public class ComposterAPI {
public static Block allowCompost(float chance, Block block){
if (block!=null){
if (block != null) {
allowCompost(chance, block.asItem());
}
return block;
}
public static Item allowCompost(float chance, Item item){
if (item!=null && item != Items.AIR) {
if (item != null && item != Items.AIR) {
ComposterBlockAccessor.callAdd(chance, item);
}
return item;