Update EntityRobotPicker.java

Prevents a crash if the pipe a robot is docked onto is broken.
This commit is contained in:
viliml 2014-05-21 14:10:52 +02:00
parent 625b21719d
commit 82e804cd13

View file

@ -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) {