From 479ebc2f3fcf447ebbff16802d84a62cc50d8a55 Mon Sep 17 00:00:00 2001 From: tommy1019 Date: Sat, 27 Jul 2013 18:39:26 -0500 Subject: [PATCH] Obsidian pipes can't pick up arrows players can't. --- .../buildcraft/transport/pipes/PipeItemsObsidian.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/common/buildcraft/transport/pipes/PipeItemsObsidian.java b/common/buildcraft/transport/pipes/PipeItemsObsidian.java index 9374cd33..cc88e9e5 100644 --- a/common/buildcraft/transport/pipes/PipeItemsObsidian.java +++ b/common/buildcraft/transport/pipes/PipeItemsObsidian.java @@ -279,9 +279,13 @@ public class PipeItemsObsidian extends Pipe implements IPowe } return powerHandler.useEnergy(1, distance, false) >= distance; - } else if (entity instanceof EntityArrow) - return powerHandler.useEnergy(1, distance, false) >= distance; - else + } else if (entity instanceof EntityArrow) { + EntityArrow arrow = (EntityArrow) entity; + if (arrow.canBePickedUp == 1) + return powerHandler.useEnergy(1, distance, false) >= distance; + else + return false; + } else return false; }