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)
|
||||
public class AssemblyLine extends ModPrefab
|
||||
{
|
||||
public AssemblyLine()
|
||||
{
|
||||
super("al");
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
// @Mod
|
||||
public static final String MOD_ID = "AssemblyLine";
|
||||
|
@ -106,12 +101,8 @@ public class AssemblyLine extends ModPrefab
|
|||
super.preInit(event);
|
||||
FMLog.setParent(FMLLog.getLogger());
|
||||
instance = this;
|
||||
recipeLoader = new ALRecipeLoader();
|
||||
|
||||
/* UPDATE NOTIFIER */
|
||||
Modstats.instance().getReporter().registerMod(this);
|
||||
|
||||
NetworkRegistry.instance().registerGuiHandler(this, this.proxy);
|
||||
NetworkRegistry.instance().registerGuiHandler(this, proxy);
|
||||
|
||||
GameRegistry.registerBlock(recipeLoader.blockConveyorBelt, "ConveyorBelt");
|
||||
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
|
||||
public void loadConfig()
|
||||
{
|
||||
if (recipeLoader == null)
|
||||
{
|
||||
recipeLoader = new ALRecipeLoader();
|
||||
}
|
||||
CONFIGURATION.load();
|
||||
recipeLoader.blockConveyorBelt = new BlockConveyorBelt(BLOCK_ID_PREFIX);
|
||||
recipeLoader.blockConveyorBelt = new BlockConveyorBelt(BLOCK_ID_PREFIX++);
|
||||
recipeLoader.blockManipulator = new BlockManipulator(BLOCK_ID_PREFIX++);
|
||||
recipeLoader.blockCrate = new BlockCrate(BLOCK_ID_PREFIX++);
|
||||
recipeLoader.blockImprinter = new BlockImprinter(BLOCK_ID_PREFIX++);
|
||||
|
@ -203,4 +192,10 @@ public class AssemblyLine extends ModPrefab
|
|||
meta.autogenerated = false;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDomain()
|
||||
{
|
||||
return "al";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue