Removed BC dep from FacadeManager - untested

This commit is contained in:
CovertJaguar 2012-10-24 22:54:23 -07:00
parent 485a278afe
commit c7799cf3e2

View file

@ -1,11 +1,20 @@
package buildcraft.api.transport; package buildcraft.api.transport;
import buildcraft.transport.ItemFacade; import java.lang.reflect.Method;
import net.minecraft.src.ItemStack; import net.minecraft.src.ItemStack;
public class FacadeManager public class FacadeManager
{ {
private static Method addFacade;
public static void addFacade(ItemStack is) { public static void addFacade(ItemStack is) {
ItemFacade.addFacade(is); try {
if(addFacade == null) {
Class facade = Class.forName("buildcraft.transport.ItemFacade");
addFacade = facade.getMethod("addFacade", ItemStack.class);
}
addFacade.invoke(null, is);
} catch(Exception ex) {
}
} }
} }