increased amount of energy storable in builders and fixed infinite loop

This commit is contained in:
SpaceToad 2014-04-27 13:57:31 +02:00
parent 9b77c7d5f3
commit e0f0e1dab6
2 changed files with 13 additions and 9 deletions
common/buildcraft

View file

@ -30,7 +30,7 @@ public abstract class TileAbstractBuilder extends TileBuildCraft implements ITil
public static double BREAK_ENERGY = 10;
public static double BUILD_ENERGY = 20;
@MjBattery(maxReceivedPerCycle = 100, maxCapacity = 1000, minimumConsumption = 1)
@MjBattery(maxReceivedPerCycle = 100, maxCapacity = 10000, minimumConsumption = 1)
protected double mjStored = 0;
@NetworkData

View file

@ -237,15 +237,19 @@ public class BptBuilderBlueprint extends BptBuilderBase {
}
}
} else {
if (BuildCraftAPI.isSoftBlock(world, slot.x, slot.y, slot.z)
&& checkRequirements(builder,
slot.schematic)) {
useRequirements(builder, slot);
if (BuildCraftAPI.isSoftBlock(world, slot.x, slot.y, slot.z)) {
if (checkRequirements(builder, slot.schematic)) {
useRequirements(builder, slot);
iterator.remove();
postProcessing.add(slot);
builtLocations.add(new BlockIndex(slot.x, slot.y, slot.z));
return slot;
iterator.remove();
postProcessing.add(slot);
builtLocations.add(new BlockIndex(slot.x, slot.y, slot.z));
return slot;
} else {
// the block is not soft anymore, we can't build here.
// forget about it.
iterator.remove();
}
}
}
} else {