From 32e3d44e1336bed090605c6987fdf189617719d1 Mon Sep 17 00:00:00 2001 From: SpaceToad Date: Sun, 9 Feb 2014 21:29:23 +0100 Subject: [PATCH] added missing channel to energy mod --- common/buildcraft/BuildCraftEnergy.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/buildcraft/BuildCraftEnergy.java b/common/buildcraft/BuildCraftEnergy.java index 738ef46c..100e7333 100644 --- a/common/buildcraft/BuildCraftEnergy.java +++ b/common/buildcraft/BuildCraftEnergy.java @@ -33,6 +33,7 @@ import buildcraft.energy.worldgen.BiomeGenOilDesert; import buildcraft.energy.worldgen.BiomeGenOilOcean; import buildcraft.energy.worldgen.BiomeInitializer; import buildcraft.energy.worldgen.OilPopulate; +import buildcraft.transport.network.PacketHandlerTransport; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; @@ -207,7 +208,10 @@ public class BuildCraftEnergy extends BuildCraftMod { @EventHandler public void init(FMLInitializationEvent evt) { - NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler()); + channels = NetworkRegistry.INSTANCE.newChannel + (DefaultProps.NET_CHANNEL_NAME + "-ENERGY", new PacketHandlerTransport()); + + NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler()); //new BptBlockEngine(engineBlock.blockID);