mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 20:12:19 +00:00
Fix #1476 Wood Pile processes instantly
This commit is contained in:
1 parent
85718b1df8
commit
a8e4f5dde7
2 files changed
+7
-6
No files matched your search
@@ -425,7 +425,7 @@ public class PluginArboriculture extends BlankForestryPlugin {
|
||||
}
|
||||
|
||||
//Dirt Pile Block
|
||||
RecipeUtil.addShapelessRecipe(new ItemStack(PluginArboriculture.blocks.piles.get(EnumPileType.DIRT)), PluginCore.items.fertilizerBio, Items.CLAY_BALL, PluginCore.items.fertilizerBio, OreDictUtil.DIRT, OreDictUtil.DIRT, OreDictUtil.DIRT, PluginCore.items.fertilizerBio, Items.CLAY_BALL, PluginCore.items.fertilizerBio);
|
||||
RecipeUtil.addShapelessRecipe(new ItemStack(PluginArboriculture.blocks.piles.get(EnumPileType.DIRT), 4), Items.CLAY_BALL, PluginCore.items.fertilizerBio, Items.CLAY_BALL, OreDictUtil.SAND, Items.CLAY_BALL, OreDictUtil.SAND, Items.CLAY_BALL, PluginCore.items.fertilizerBio, Items.CLAY_BALL);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -95,6 +95,7 @@ public class CharcoalPileController extends RectangularMultiblockControllerBase
|
||||
protected void onMachineDisassembled() {
|
||||
setActive(false);
|
||||
burnTime = 0;
|
||||
woodBurnTime = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -111,7 +112,7 @@ public class CharcoalPileController extends RectangularMultiblockControllerBase
|
||||
if (!isActive()) {
|
||||
return false;
|
||||
}
|
||||
if(woodBurnTime == 0 && tickCount % 20 == 0){
|
||||
if(woodBurnTime == 0){
|
||||
int validComps = 0;
|
||||
int newBurnTime = 0;
|
||||
for (IMultiblockComponent part : connectedParts) {
|
||||
@@ -126,13 +127,13 @@ public class CharcoalPileController extends RectangularMultiblockControllerBase
|
||||
newBurnTime += charcoalAmount * 500;
|
||||
}
|
||||
}
|
||||
if(validComps <= 0){
|
||||
woodBurnTime = newBurnTime / validComps;
|
||||
if(validComps > 0){
|
||||
woodBurnTime = newBurnTime;
|
||||
}else{
|
||||
woodBurnTime = 0;
|
||||
}
|
||||
}
|
||||
if (burnTime >= woodBurnTime) {
|
||||
/*if (burnTime >= woodBurnTime) {
|
||||
for(IMultiblockComponent part : connectedParts) {
|
||||
BlockPos pos = part.getCoordinates();
|
||||
IBlockState state = worldObj.getBlockState(pos);
|
||||
@@ -143,7 +144,7 @@ public class CharcoalPileController extends RectangularMultiblockControllerBase
|
||||
MultiblockRegistry.addDirtyController(worldObj, this);
|
||||
} else {
|
||||
burnTime++;
|
||||
}
|
||||
}*/
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user