Skip to content

Commit

Permalink
Make that the ash drop of the kiln is never 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nedelosk committed Oct 18, 2016
1 parent a61879d commit 52b8d56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/forestry/arboriculture/blocks/BlockPile.java
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,11 @@ private List<ItemStack> getPileDrop(IBlockAccess world, BlockPos pos, IBlockStat
charcoal.stackSize++;
}
list.add(charcoal);
list.add(new ItemStack(PluginCore.items.ash, (int)(charcoalAmount / 1.5)));
int ashAmount = (int)(charcoalAmount / 1.5);
if(ashAmount <= 0){
ashAmount = 1;
}
list.add(new ItemStack(PluginCore.items.ash, ashAmount));
} else {
list.add(new ItemStack(Blocks.DIRT, 2));
list.add(new ItemStack(PluginCore.items.ash, 2));
Expand Down

0 comments on commit 52b8d56

Please sign in to comment.