Skip to content

Commit

Permalink
Fix rare crash with RF API, Closes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Apr 26, 2016
1 parent f7fbe25 commit a38b943
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,22 +164,23 @@ protected void loadModCompats(ModCompatLoader modCompatLoader) {
modCompatLoader.addModCompat(new ThaumcraftModCompat());
modCompatLoader.addModCompat(new JEIModCompat());
modCompatLoader.addApiCompat(new RfApiCompat());
}

@Mod.EventHandler
@Override
public final void preInit(FMLPreInitializationEvent event) {
// Capabilities
ICapabilityCompat.ICapabilityReference<IWorker> workerReference = new ICapabilityCompat.ICapabilityReference<IWorker>() {
@Override
public Capability<IWorker> getCapability() {
return Capabilities.WORKER;
}
};
ModCompatLoader modCompatLoader = getModCompatLoader();
modCompatLoader.addCapabilityCompat(TileDryingBasin.class, workerReference, new WorkerDryingBasinTileCompat());
modCompatLoader.addCapabilityCompat(TileSqueezer.class, workerReference, new WorkerSqueezerTileCompat());
modCompatLoader.addCapabilityCompat(TileCoalGenerator.class, workerReference, new WorkerCoalGeneratorTileCompat());
}

@Mod.EventHandler
@Override
public final void preInit(FMLPreInitializationEvent event) {
getRegistryManager().addRegistry(IBucketRegistry.class, new BucketRegistry());
getRegistryManager().addRegistry(ISuperRecipeRegistry.class, new SuperRecipeRegistry(this));

Expand Down

0 comments on commit a38b943

Please sign in to comment.