Editor map fix / Crafter renderer system
This commit is contained in:
@@ -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 + "-" : "";
|
||||
|
||||
Reference in New Issue
Block a user