Fixed #1184
This commit is contained in:
@@ -173,20 +173,26 @@ public class ContentParser{
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//TODO generate dynamically instead of doing.. this
|
//TODO generate dynamically instead of doing.. this
|
||||||
Class<? extends Block> type = resolve(getType(value),
|
Class<? extends Block> type;
|
||||||
"io.anuke.mindustry.world",
|
|
||||||
"io.anuke.mindustry.world.blocks",
|
try{
|
||||||
"io.anuke.mindustry.world.blocks.defense",
|
type = resolve(getType(value),
|
||||||
"io.anuke.mindustry.world.blocks.defense.turrets",
|
"io.anuke.mindustry.world",
|
||||||
"io.anuke.mindustry.world.blocks.distribution",
|
"io.anuke.mindustry.world.blocks",
|
||||||
"io.anuke.mindustry.world.blocks.liquid",
|
"io.anuke.mindustry.world.blocks.defense",
|
||||||
"io.anuke.mindustry.world.blocks.logic",
|
"io.anuke.mindustry.world.blocks.defense.turrets",
|
||||||
"io.anuke.mindustry.world.blocks.power",
|
"io.anuke.mindustry.world.blocks.distribution",
|
||||||
"io.anuke.mindustry.world.blocks.production",
|
"io.anuke.mindustry.world.blocks.liquid",
|
||||||
"io.anuke.mindustry.world.blocks.sandbox",
|
"io.anuke.mindustry.world.blocks.logic",
|
||||||
"io.anuke.mindustry.world.blocks.storage",
|
"io.anuke.mindustry.world.blocks.power",
|
||||||
"io.anuke.mindustry.world.blocks.units"
|
"io.anuke.mindustry.world.blocks.production",
|
||||||
);
|
"io.anuke.mindustry.world.blocks.sandbox",
|
||||||
|
"io.anuke.mindustry.world.blocks.storage",
|
||||||
|
"io.anuke.mindustry.world.blocks.units"
|
||||||
|
);
|
||||||
|
}catch(IllegalArgumentException e){
|
||||||
|
type = Block.class;
|
||||||
|
}
|
||||||
|
|
||||||
block = make(type, mod + "-" + name);
|
block = make(type, mod + "-" + name);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,6 +107,9 @@ public class DesktopLauncher extends ClientLauncher{
|
|||||||
if(SteamAPI.restartAppIfNecessary(SVars.steamID)){
|
if(SteamAPI.restartAppIfNecessary(SVars.steamID)){
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
|
}catch(NullPointerException ignored){
|
||||||
|
steam = false;
|
||||||
|
Log.info("Running in offline mode.");
|
||||||
}catch(Throwable e){
|
}catch(Throwable e){
|
||||||
steam = false;
|
steam = false;
|
||||||
Log.err("Failed to load Steam native libraries.");
|
Log.err("Failed to load Steam native libraries.");
|
||||||
|
|||||||
Reference in New Issue
Block a user