Fix not being able to open travel anchor GUI

This commit is contained in:
tterrag1098 committed 2015-04-05 12:35:23 -04:00
1 parent 0511a0e2a2
commit fbb58a2c8b
1 file changed
+5 -8
@@ -65,6 +65,11 @@ public class BlockTravelAnchor extends BlockEio implements IGuiHandler, ITileEnt
BlockTravelAnchor result = new BlockTravelAnchor();
result.init();
EnderIO.guiHandler.registerGuiHandler(GuiHandler.GUI_ID_TRAVEL_ACCESSABLE, result);
EnderIO.guiHandler.registerGuiHandler(GuiHandler.GUI_ID_TRAVEL_AUTH, result);
MachineRecipeRegistry.instance.registerRecipe(ModObject.blockPainter.unlocalisedName, result.new PainterTemplate());
return result;
}
@@ -82,14 +87,6 @@ public class BlockTravelAnchor extends BlockEio implements IGuiHandler, ITileEnt
super(unlocalisedName, teClass);
}
@Override
protected void init() {
super.init();
EnderIO.guiHandler.registerGuiHandler(GuiHandler.GUI_ID_TRAVEL_ACCESSABLE, this);
EnderIO.guiHandler.registerGuiHandler(GuiHandler.GUI_ID_TRAVEL_AUTH, this);
MachineRecipeRegistry.instance.registerRecipe(ModObject.blockPainter.unlocalisedName, new PainterTemplate());
}
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iIconRegister) {