parent
51ac62ce7b
commit
f81541c8db
3 changed files with 19 additions and 7 deletions
10
buildcraft_resources/changelog/7.0.14
Normal file
10
buildcraft_resources/changelog/7.0.14
Normal file
|
@ -0,0 +1,10 @@
|
|||
Bugs fixed:
|
||||
|
||||
* [#2878] Robot NPE for robots prior to 7.0.13 fix (asie)
|
||||
* [#2877] Survival blueprint crash (asie)
|
||||
* [#2841] Another crash with Oil in the Nether (asie)
|
||||
* [#2831] Robots sinking through the ground (hea3ven)
|
||||
* Allow Builders to use arbitrary IPathProviders (asie)
|
||||
* Block breaking robots sleeping in mid air (hea3ven)
|
||||
* Incorrect Request Needed Items action name (asie)
|
||||
* Robots ignoring gate config on their linked station when equipping items (hea3ven)
|
|
@ -265,8 +265,10 @@ public class BptBuilderBlueprint extends BptBuilderBase {
|
|||
|
||||
private int getBuildListCount() {
|
||||
int out = 0;
|
||||
for (int i = 0; i < buildStageOccurences.length; i++) {
|
||||
out += buildStageOccurences[i];
|
||||
if (buildStageOccurences != null) {
|
||||
for (int i = 0; i < buildStageOccurences.length; i++) {
|
||||
out += buildStageOccurences[i];
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ public class AIRobotGoAndLinkToDock extends AIRobot {
|
|||
if (station == robot.getLinkedStation() && station == robot.getDockingStation()) {
|
||||
terminate();
|
||||
} else {
|
||||
if (station.takeAsMain(robot)) {
|
||||
if (station != null && station.takeAsMain(robot)) {
|
||||
startDelegateAI(new AIRobotGotoBlock(robot,
|
||||
station.x() + station.side().offsetX * 2,
|
||||
station.y() + station.side().offsetY * 2,
|
||||
|
@ -52,10 +52,10 @@ public class AIRobotGoAndLinkToDock extends AIRobot {
|
|||
public void delegateAIEnded(AIRobot ai) {
|
||||
if (ai instanceof AIRobotGotoBlock) {
|
||||
if (ai.success()) {
|
||||
startDelegateAI(new AIRobotStraightMoveTo(robot,
|
||||
station.x() + 0.5F + station.side().offsetX * 0.5F,
|
||||
station.y() + 0.5F + station.side().offsetY * 0.5F,
|
||||
station.z() + 0.5F + station.side().offsetZ * 0.5F));
|
||||
startDelegateAI(new AIRobotStraightMoveTo(robot,
|
||||
station.x() + 0.5F + station.side().offsetX * 0.5F,
|
||||
station.y() + 0.5F + station.side().offsetY * 0.5F,
|
||||
station.z() + 0.5F + station.side().offsetZ * 0.5F));
|
||||
} else {
|
||||
terminate();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue