Small cleanup
This commit is contained in:
parent
b2ba2976dd
commit
69d11c0e5a
1 changed files with 2 additions and 2 deletions
|
@ -7,14 +7,14 @@ import ru.bclib.mixin.common.ComposterBlockAccessor;
|
||||||
|
|
||||||
public class ComposterAPI {
|
public class ComposterAPI {
|
||||||
public static Block allowCompost(float chance, Block block){
|
public static Block allowCompost(float chance, Block block){
|
||||||
if (block!=null){
|
if (block != null) {
|
||||||
allowCompost(chance, block.asItem());
|
allowCompost(chance, block.asItem());
|
||||||
}
|
}
|
||||||
return block;
|
return block;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Item allowCompost(float chance, Item item){
|
public static Item allowCompost(float chance, Item item){
|
||||||
if (item!=null && item != Items.AIR) {
|
if (item != null && item != Items.AIR) {
|
||||||
ComposterBlockAccessor.callAdd(chance, item);
|
ComposterBlockAccessor.callAdd(chance, item);
|
||||||
}
|
}
|
||||||
return item;
|
return item;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue