Editor map fix / Crafter renderer system

This commit is contained in:
Anuken
2020-06-13 10:33:19 -04:00
parent 27522ae494
commit 3b3a1dd496
27 changed files with 7415 additions and 7007 deletions

View File

@@ -28,6 +28,7 @@ import mindustry.type.*;
import mindustry.world.*;
import mindustry.world.blocks.*;
import mindustry.world.consumers.*;
import mindustry.world.draw.*;
import mindustry.world.meta.*;
import java.lang.reflect.*;
@@ -143,6 +144,11 @@ public class ContentParser{
}
}
//try to load DrawBlock by instantiating it
if(type == DrawBlock.class && jsonData.isString()){
return Reflect.make("mindustry.world.draw." + Strings.capitalize(jsonData.asString()));
}
if(Content.class.isAssignableFrom(type)){
ContentType ctype = contentTypes.getThrow(type, () -> new IllegalArgumentException("No content type for class: " + type.getSimpleName()));
String prefix = currentMod != null ? currentMod.name + "-" : "";