Fixed #859
This commit is contained in:
+4
-3
@@ -5,12 +5,13 @@ buildscript{
|
|||||||
google()
|
google()
|
||||||
maven{ url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
maven{ url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
||||||
jcenter()
|
jcenter()
|
||||||
|
maven{ url 'https://jitpack.io' }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies{
|
dependencies{
|
||||||
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.8-SNAPSHOT'
|
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.7'
|
||||||
classpath "com.badlogicgames.gdx:gdx-tools:1.9.10"
|
classpath "com.badlogicgames.gdx:gdx-tools:1.9.10"
|
||||||
classpath "com.badlogicgames.packr:packr:2.1-SNAPSHOT"
|
classpath "com.github.anuken:packr:-SNAPSHOT"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,7 +26,7 @@ allprojects{
|
|||||||
if(!project.hasProperty("versionType")) versionType = 'official'
|
if(!project.hasProperty("versionType")) versionType = 'official'
|
||||||
appName = 'Mindustry'
|
appName = 'Mindustry'
|
||||||
gdxVersion = '1.9.10'
|
gdxVersion = '1.9.10'
|
||||||
roboVMVersion = '2.3.8-SNAPSHOT'
|
roboVMVersion = '2.3.7'
|
||||||
steamworksVersion = '1.8.0'
|
steamworksVersion = '1.8.0'
|
||||||
arcHash = null
|
arcHash = null
|
||||||
|
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ import java.text.*;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import static io.anuke.arc.Core.*;
|
import static io.anuke.arc.Core.*;
|
||||||
import static io.anuke.mindustry.Vars.*;
|
|
||||||
import static io.anuke.mindustry.Vars.net;
|
import static io.anuke.mindustry.Vars.net;
|
||||||
|
import static io.anuke.mindustry.Vars.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Control module.
|
* Control module.
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package io.anuke.mindustry.game;
|
|||||||
import io.anuke.arc.util.serialization.Json;
|
import io.anuke.arc.util.serialization.Json;
|
||||||
import io.anuke.arc.util.serialization.Json.Serializable;
|
import io.anuke.arc.util.serialization.Json.Serializable;
|
||||||
import io.anuke.arc.util.serialization.JsonValue;
|
import io.anuke.arc.util.serialization.JsonValue;
|
||||||
|
import io.anuke.mindustry.content.*;
|
||||||
import io.anuke.mindustry.entities.type.BaseUnit;
|
import io.anuke.mindustry.entities.type.BaseUnit;
|
||||||
import io.anuke.mindustry.type.*;
|
import io.anuke.mindustry.type.*;
|
||||||
|
|
||||||
@@ -84,6 +85,7 @@ public class SpawnGroup implements Serializable{
|
|||||||
@Override
|
@Override
|
||||||
public void read(Json json, JsonValue data){
|
public void read(Json json, JsonValue data){
|
||||||
type = content.getByName(ContentType.unit, data.getString("type", "dagger"));
|
type = content.getByName(ContentType.unit, data.getString("type", "dagger"));
|
||||||
|
if(type == null) type = UnitTypes.dagger;
|
||||||
begin = data.getInt("begin", 0);
|
begin = data.getInt("begin", 0);
|
||||||
end = data.getInt("end", never);
|
end = data.getInt("end", never);
|
||||||
spacing = data.getInt("spacing", 1);
|
spacing = data.getInt("spacing", 1);
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=b87d817844e1da093b31da06870c0970176648a9
|
archash=411d2784f538dfc10db2962a62833938029dafdd
|
||||||
|
|||||||
Reference in New Issue
Block a user