mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-19 20:00:05 +00:00
Fix failing integration with AE2 and Waila
This commit is contained in:
1 parent
0bf2d77592
commit
4681d39d7d
3 files changed
+13
-2
No files matched your search
@@ -25,6 +25,7 @@ public class CompTierRegistry
|
||||
register(new ItemStack(Blocks.nether_brick), new ItemStack(Items.netherbrick), 4);
|
||||
register(new ItemStack(Blocks.quartz_block), new ItemStack(Items.quartz), 4);
|
||||
register(new ItemStack(Blocks.melon_block), new ItemStack(Items.melon), 9);
|
||||
register(new ItemStack(Blocks.sandstone), new ItemStack(Blocks.sand), 4);
|
||||
}
|
||||
|
||||
public void register (ItemStack upper, ItemStack lower, int convRate) {
|
||||
|
||||
@@ -51,6 +51,14 @@ public class AppliedEnergistics extends IntegrationModule
|
||||
}
|
||||
}
|
||||
|
||||
private static class APIFactory implements IStorageBusMonitorFactory {
|
||||
|
||||
@Override
|
||||
public IMEMonitor<IAEItemStack> createStorageBusMonitor (IMEInventory<IAEItemStack> inventory, BaseActionSource src) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private IStorageBusMonitorFactory factory;
|
||||
|
||||
@Override
|
||||
|
||||
@@ -16,8 +16,10 @@ public class IntegrationRegistry
|
||||
|
||||
static {
|
||||
IntegrationRegistry reg = instance();
|
||||
reg.add(new AppliedEnergistics());
|
||||
reg.add(new Waila());
|
||||
if (Loader.isModLoaded("appliedenergistics2"))
|
||||
reg.add(new AppliedEnergistics());
|
||||
if (Loader.isModLoaded("Waila"))
|
||||
reg.add(new Waila());
|
||||
}
|
||||
|
||||
private IntegrationRegistry () {
|
||||
|
||||
Reference in new issue
Block a user