Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
added other event
Browse files Browse the repository at this point in the history
  • Loading branch information
roryclaasen committed Mar 12, 2016
1 parent 3597f26 commit 63a6c9b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/net/roryclaasen/rorysmod/register/Register.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import net.minecraftforge.oredict.ShapelessOreRecipe;
import net.roryclaasen.rorysmod.core.RorysMod;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.network.IGuiHandler;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
Expand Down Expand Up @@ -125,6 +126,13 @@ public static void registerEntities(Class<? extends Entity> entityClass, String
public static void registerEventBus(Object target) {
MinecraftForge.EVENT_BUS.register(target);
event++;

FMLCommonHandler.instance().bus().register(target);
}

public static void registerFMLEvent(Object target) {
FMLCommonHandler.instance().bus().register(target);
event++;
}

public static void registerGUI(IGuiHandler handler) {
Expand Down

0 comments on commit 63a6c9b

Please sign in to comment.