Now downloads the zip file

This commit is contained in:
modmuss50 2016-04-23 13:52:50 +01:00
parent a2d626bc61
commit 9561b36661
No known key found for this signature in database
GPG key ID: 1838986A0F12E8EE
6 changed files with 146 additions and 0 deletions

View file

@ -18,6 +18,10 @@ import techreborn.client.hud.ChargeHud;
import techreborn.client.keybindings.KeyBindings;
import techreborn.client.render.entitys.RenderNukePrimed;
import techreborn.entitys.EntityNukePrimed;
import techreborn.manual.loader.ManualLoader;
import java.io.File;
import java.io.IOException;
public class ClientProxy extends CommonProxy
{
@ -29,6 +33,17 @@ public class ClientProxy extends CommonProxy
{
super.preInit(event);
RenderingRegistry.registerEntityRenderingHandler(EntityNukePrimed.class, new RenderManagerNuke());
ManualLoader loader = new ManualLoader(new File(event.getModConfigurationDirectory(), "techreborn"));
new Thread(() ->
{
try {
loader.load();
} catch (IOException e) {
e.printStackTrace();
}
}).start();
}
@Override