Make that the ash drop of the kiln is never 0

This commit is contained in:
Nedelosk committed 2016-10-19 00:04:17 +02:00
1 parent a61879daff
commit 52b8d56ff0
1 file changed
+5 -1
@@ -421,7 +421,11 @@ public abstract class BlockPile extends BlockStructure implements ITileEntityPro
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));