Fixed Autarchic Gate exploit
There is no reason for them to power Wooden Conductive Pipes.
This commit is contained in:
parent
b4e7451ad1
commit
2d7f4f6a8a
1 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,5 @@
|
|||
package buildcraft.transport;
|
||||
|
||||
import java.util.LinkedList;
|
||||
|
||||
import buildcraft.BuildCraftTransport;
|
||||
import buildcraft.api.gates.IAction;
|
||||
import buildcraft.api.gates.ITrigger;
|
||||
|
@ -10,10 +8,11 @@ import buildcraft.api.transport.IPipe;
|
|||
import buildcraft.core.DefaultProps;
|
||||
import buildcraft.core.GuiIds;
|
||||
import buildcraft.core.proxy.CoreProxy;
|
||||
import buildcraft.core.utils.Utils;
|
||||
import buildcraft.core.utils.StringUtil;
|
||||
import buildcraft.core.utils.Utils;
|
||||
import buildcraft.transport.pipes.PipePowerWood;
|
||||
import buildcraft.transport.triggers.ActionEnergyPulser;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import net.minecraft.src.EntityPlayer;
|
||||
import net.minecraft.src.Item;
|
||||
import net.minecraft.src.ItemStack;
|
||||
|
@ -119,7 +118,7 @@ public class GateVanilla extends Gate {
|
|||
* @return
|
||||
*/
|
||||
private boolean addEnergyPulser(Pipe pipe) {
|
||||
if (!(pipe instanceof IPowerReceptor)){
|
||||
if (!(pipe instanceof IPowerReceptor) || pipe instanceof PipePowerWood){
|
||||
pulser = new EnergyPulser(null);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue