Removed BC dep from FacadeManager - untested
This commit is contained in:
parent
485a278afe
commit
c7799cf3e2
1 changed files with 11 additions and 2 deletions
|
@ -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) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue