Obsidian pipes can't pick up arrows players can't.
This commit is contained in:
parent
54677904f0
commit
479ebc2f3f
1 changed files with 7 additions and 3 deletions
|
@ -279,10 +279,14 @@ public class PipeItemsObsidian extends Pipe<PipeTransportItems> implements IPowe
|
||||||
}
|
}
|
||||||
|
|
||||||
return powerHandler.useEnergy(1, distance, false) >= distance;
|
return powerHandler.useEnergy(1, distance, false) >= distance;
|
||||||
} else if (entity instanceof EntityArrow)
|
} else if (entity instanceof EntityArrow) {
|
||||||
|
EntityArrow arrow = (EntityArrow) entity;
|
||||||
|
if (arrow.canBePickedUp == 1)
|
||||||
return powerHandler.useEnergy(1, distance, false) >= distance;
|
return powerHandler.useEnergy(1, distance, false) >= distance;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
} else
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue