BuildCraft 7.1.13

This commit is contained in:
asiekierka 2015-11-07 16:55:22 +01:00
parent a24fa1c7ee
commit ebbdbdaef7
7 changed files with 30 additions and 9 deletions

View file

@ -22,7 +22,7 @@ apply plugin: 'forge' // adds the forge dependency
apply plugin: 'maven' // for uploading to a maven repo
apply plugin: 'checkstyle'
version = "7.1.12"
version = "7.1.13"
group= "com.mod-buildcraft"
archivesBaseName = "buildcraft" // the name that all artifacts will use as a base. artifacts names follow this pattern: [baseName]-[appendix]-[version]-[classifier].[extension]

View file

@ -0,0 +1,23 @@
I recommend that you double-check your gate setups after this update.
Note for Regrowth/IguanaTweaks users: If you have disabled vanilla tools working in your pack, they won't work anymore with BuildCraft robots since ~7.1.10. They used to, but they won't, as now robots emulate a real player far more accurately.
Additions:
* Clear Lens and Filter (asie, requested by Forecaster)
* Special triggers for Fuel and Coolant in Combustion Engines (SandGrainOne)
Improvements:
* Default inventory triggers are now side-sensitive. (SandGrainOne)
Bugs fixed:
* [#3112] Robot loading stuck in a race condition (asie)
* [#3111] Rare NPE upon placing Pipe Wire (asie)
* [#3102] Defective recipe handling with disabled items (asie)
* [#3100] Strange FacadeRenderHelper crash (asie)
* [#3086] Stripes pipes not consuming energy (asie)
* "/buildcraft" command not working correctly (asie)
* Improvements to robot pathfinding handling (asie)
* Robots not handling tools properly in some cases (asie)

View file

@ -1,3 +1,3 @@
1.6.4:BuildCraft:4.2.2
1.7.2:BuildCraft:6.0.16
1.7.10:BuildCraft:7.1.12
1.7.10:BuildCraft:7.1.13

View file

@ -28,7 +28,6 @@ import net.minecraft.world.WorldServer;
import net.minecraft.world.chunk.Chunk;
import cpw.mods.fml.common.FMLCommonHandler;
import net.minecraftforge.common.ForgeHooks;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.event.ForgeEventFactory;

View file

@ -69,7 +69,6 @@ import buildcraft.api.boards.RedstoneBoardRobotNBT;
import buildcraft.api.core.BCLog;
import buildcraft.api.core.BlockIndex;
import buildcraft.api.core.IZone;
import buildcraft.api.core.SafeTimeTracker;
import buildcraft.api.events.RobotEvent;
import buildcraft.api.robots.AIRobot;
import buildcraft.api.robots.DockingStation;

View file

@ -22,7 +22,6 @@ import buildcraft.api.core.BlockIndex;
import buildcraft.api.robots.AIRobot;
import buildcraft.api.robots.EntityRobotBase;
import buildcraft.core.lib.utils.BlockUtils;
import buildcraft.core.proxy.CoreProxy;
public class AIRobotBreak extends AIRobot {
private BlockIndex blockToBreak;
@ -138,9 +137,9 @@ public class AIRobotBreak extends AIRobot {
}
}
f = ForgeEventFactory.getBreakSpeed(BlockUtils.getFakePlayerWithTool((WorldServer)robot.worldObj, blockToBreak.x, blockToBreak.y, blockToBreak.z, robot.getHeldItem()),
f = ForgeEventFactory.getBreakSpeed(BlockUtils.getFakePlayerWithTool((WorldServer) robot.worldObj, blockToBreak.x, blockToBreak.y, blockToBreak.z, robot.getHeldItem()),
block, meta, f, blockToBreak.x, blockToBreak.y, blockToBreak.z);
return (f < 0 ? 0 : f);
return f < 0 ? 0 : f;
}
@Override

View file

@ -20,7 +20,6 @@ import buildcraft.api.core.BuildCraftAPI;
import buildcraft.api.robots.EntityRobotBase;
import buildcraft.core.lib.utils.IterableAlgorithmRunner;
import buildcraft.core.lib.utils.PathFinding;
import buildcraft.robotics.RobotUtils;
public class AIRobotGotoBlock extends AIRobotGoto {
@ -124,10 +123,12 @@ public class AIRobotGotoBlock extends AIRobotGoto {
private void setNextInPath() {
if (path.size() > 0) {
boolean isFirst = prevDistance == Double.MAX_VALUE;
BlockIndex next = path.getFirst();
prevDistance = Double.MAX_VALUE;
if (BuildCraftAPI.isSoftBlock(robot.worldObj, next.x, next.y, next.z)) {
if (isFirst || BuildCraftAPI.isSoftBlock(robot.worldObj, next.x, next.y, next.z)) {
setDestination(robot, next.x + 0.5F, next.y + 0.5F, next.z + 0.5F);
robot.aimItemAt(next.x, next.y, next.z);
} else {