Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/main/java/makeo/gadomancy/common/CommonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public void preInitalize() {
}

public void initalize() {
EVENT_HANDLER_GOLEM = new EventHandlerGolem();
MinecraftForge.EVENT_BUS.register(EVENT_HANDLER_GOLEM);
NetworkRegistry.INSTANCE.registerGuiHandler(Gadomancy.instance, this);
RegisteredEnchantments.init();
RegisteredRecipes.init();
Expand Down Expand Up @@ -132,8 +134,6 @@ public Side getSide() {
public EventHandlerEntity EVENT_HANDLER_ENTITY;

public void onServerAboutToStart(FMLServerAboutToStartEvent event) {
EVENT_HANDLER_GOLEM = new EventHandlerGolem();
MinecraftForge.EVENT_BUS.register(EVENT_HANDLER_GOLEM);
EVENT_HANDLER_NETWORK = new EventHandlerNetwork();
FMLCommonHandler.instance().bus().register(EVENT_HANDLER_NETWORK);
EVENT_HANDLER_WORLD = new EventHandlerWorld();
Expand All @@ -144,8 +144,6 @@ public void onServerAboutToStart(FMLServerAboutToStartEvent event) {
}

public void onServerStopped(FMLServerStoppedEvent event) {
MinecraftForge.EVENT_BUS.unregister(EVENT_HANDLER_GOLEM);
EVENT_HANDLER_GOLEM = null;
Comment thread
Alexdoru marked this conversation as resolved.
FMLCommonHandler.instance().bus().unregister(EVENT_HANDLER_NETWORK);
EVENT_HANDLER_NETWORK = null;
MinecraftForge.EVENT_BUS.unregister(EVENT_HANDLER_WORLD);
Expand Down