From 3a02c63ea69d93510d6bbc7079af101e8810dbfd Mon Sep 17 00:00:00 2001 From: Prototik Date: Thu, 15 May 2014 14:21:05 +0800 Subject: [PATCH] Make Converter block works with pipes --- common/buildcraft/energy/TileEnergyConverter.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/buildcraft/energy/TileEnergyConverter.java b/common/buildcraft/energy/TileEnergyConverter.java index 0981472d..ad1cd2e5 100644 --- a/common/buildcraft/energy/TileEnergyConverter.java +++ b/common/buildcraft/energy/TileEnergyConverter.java @@ -21,6 +21,7 @@ import buildcraft.api.core.NetworkData; import buildcraft.api.mj.IBatteryObject; import buildcraft.api.mj.MjAPI; import buildcraft.api.mj.MjBattery; +import buildcraft.api.power.IPowerEmitter; import buildcraft.api.power.IPowerReceptor; import buildcraft.api.power.PowerHandler; import buildcraft.api.tools.IToolWrench; @@ -28,7 +29,7 @@ import buildcraft.core.TileBuffer; import buildcraft.core.TileBuildCraft; import buildcraft.core.utils.StringUtils; -public class TileEnergyConverter extends TileBuildCraft implements IPowerReceptor { +public class TileEnergyConverter extends TileBuildCraft implements IPowerReceptor, IPowerEmitter { private static enum Mode { FromOldToNew("from_old_to_new"), FromNewToOld("from_new_to_old"); private final String localizeName; @@ -156,4 +157,9 @@ public class TileEnergyConverter extends TileBuildCraft implements IPowerRecepto @Override public void doWork(PowerHandler workProvider) { } + + @Override + public boolean canEmitPowerFrom(ForgeDirection side) { + return mode == Mode.FromOldToNew; + } }