Update EntityRobotPicker.java
Prevents a crash if the pipe a robot is docked onto is broken.
This commit is contained in:
parent
625b21719d
commit
82e804cd13
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ public class EntityRobotPicker extends EntityRobot implements IInventory {
|
|||
.getTileEntity(dockingStation.x, dockingStation.y,
|
||||
dockingStation.z);
|
||||
|
||||
if (pipe.pipe.transport instanceof PipeTransportItems) {
|
||||
if (pipe != null && pipe.pipe.transport instanceof PipeTransportItems) {
|
||||
if (unloadTracker.markTimeIfDelay(worldObj)) {
|
||||
for (int i = 0; i < inv.length; ++i) {
|
||||
if (inv[i] != null) {
|
||||
|
|
Loading…
Reference in a new issue