fixed domain loading issue
This commit is contained in:
parent
96f485042e
commit
ddc983cd40
1 changed files with 12 additions and 17 deletions
|
@ -63,11 +63,6 @@ import dark.core.blocks.TileEntityMulti;
|
||||||
@NetworkMod(channels = { AssemblyLine.CHANNEL }, clientSideRequired = true, serverSideRequired = false, packetHandler = PacketManager.class)
|
@NetworkMod(channels = { AssemblyLine.CHANNEL }, clientSideRequired = true, serverSideRequired = false, packetHandler = PacketManager.class)
|
||||||
public class AssemblyLine extends ModPrefab
|
public class AssemblyLine extends ModPrefab
|
||||||
{
|
{
|
||||||
public AssemblyLine()
|
|
||||||
{
|
|
||||||
super("al");
|
|
||||||
// TODO Auto-generated constructor stub
|
|
||||||
}
|
|
||||||
|
|
||||||
// @Mod
|
// @Mod
|
||||||
public static final String MOD_ID = "AssemblyLine";
|
public static final String MOD_ID = "AssemblyLine";
|
||||||
|
@ -106,12 +101,8 @@ public class AssemblyLine extends ModPrefab
|
||||||
super.preInit(event);
|
super.preInit(event);
|
||||||
FMLog.setParent(FMLLog.getLogger());
|
FMLog.setParent(FMLLog.getLogger());
|
||||||
instance = this;
|
instance = this;
|
||||||
recipeLoader = new ALRecipeLoader();
|
|
||||||
|
|
||||||
/* UPDATE NOTIFIER */
|
NetworkRegistry.instance().registerGuiHandler(this, proxy);
|
||||||
Modstats.instance().getReporter().registerMod(this);
|
|
||||||
|
|
||||||
NetworkRegistry.instance().registerGuiHandler(this, this.proxy);
|
|
||||||
|
|
||||||
GameRegistry.registerBlock(recipeLoader.blockConveyorBelt, "ConveyorBelt");
|
GameRegistry.registerBlock(recipeLoader.blockConveyorBelt, "ConveyorBelt");
|
||||||
GameRegistry.registerBlock(recipeLoader.blockCrate, ItemBlockCrate.class, "Crate");
|
GameRegistry.registerBlock(recipeLoader.blockCrate, ItemBlockCrate.class, "Crate");
|
||||||
|
@ -153,17 +144,15 @@ public class AssemblyLine extends ModPrefab
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void printSidedData(String data)
|
|
||||||
{
|
|
||||||
System.out.print(FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT ? "[C]" : "[S]");
|
|
||||||
System.out.println(" " + data);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void loadConfig()
|
public void loadConfig()
|
||||||
{
|
{
|
||||||
|
if (recipeLoader == null)
|
||||||
|
{
|
||||||
|
recipeLoader = new ALRecipeLoader();
|
||||||
|
}
|
||||||
CONFIGURATION.load();
|
CONFIGURATION.load();
|
||||||
recipeLoader.blockConveyorBelt = new BlockConveyorBelt(BLOCK_ID_PREFIX);
|
recipeLoader.blockConveyorBelt = new BlockConveyorBelt(BLOCK_ID_PREFIX++);
|
||||||
recipeLoader.blockManipulator = new BlockManipulator(BLOCK_ID_PREFIX++);
|
recipeLoader.blockManipulator = new BlockManipulator(BLOCK_ID_PREFIX++);
|
||||||
recipeLoader.blockCrate = new BlockCrate(BLOCK_ID_PREFIX++);
|
recipeLoader.blockCrate = new BlockCrate(BLOCK_ID_PREFIX++);
|
||||||
recipeLoader.blockImprinter = new BlockImprinter(BLOCK_ID_PREFIX++);
|
recipeLoader.blockImprinter = new BlockImprinter(BLOCK_ID_PREFIX++);
|
||||||
|
@ -203,4 +192,10 @@ public class AssemblyLine extends ModPrefab
|
||||||
meta.autogenerated = false;
|
meta.autogenerated = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getDomain()
|
||||||
|
{
|
||||||
|
return "al";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue