Fixed bug with conveyor belt rotation not being saved

This commit is contained in:
Anuken
2017-08-08 20:18:31 -04:00
parent de22d72c51
commit 09985e30fe
328 changed files with 183 additions and 36 deletions
+11 -3
View File
@@ -1,5 +1,5 @@
apply plugin: "java"
apply plugin: "jetty"
apply plugin: 'org.akhikhl.gretty'
gwt {
gwtVersion='2.8.0' // Should match the gwt version used for building the gwt backend
@@ -50,12 +50,20 @@ task dist(dependsOn: [clean, compileGwt]) {
}
}
task distZip(type: Zip, dependsOn: dist){
from "build/dist"
archiveName appName + "-html5.zip"
destinationDir(file("build/dist-zipped"))
}
draftWar {
from "war"
}
task addSource << {
sourceSets.main.compileClasspath += files(project(':core').sourceSets.main.allJava.srcDirs)
task addSource{
doLast{
sourceSets.main.compileClasspath += files(project(':core').sourceSets.main.allJava.srcDirs)
}
}
tasks.compileGwt.dependsOn(addSource)
@@ -9,5 +9,5 @@
<entry-point class='io.anuke.mindustry.client.HtmlLauncher' />
<set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>
<set-configuration-property name="gdx.assetpath" value="../android/assets" />
<set-configuration-property name="gdx.assetpath" value="../core/assets" />
</module>
@@ -1,5 +1,7 @@
package io.anuke.mindustry.client;
import java.util.Date;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.backends.gwt.GwtApplication;
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration;
@@ -9,6 +11,8 @@ import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.VerticalPanel;
import io.anuke.mindustry.Mindustry;
import io.anuke.mindustry.io.SaveIO;
import io.anuke.mindustry.io.SaveIO.FormatProvider;
public class HtmlLauncher extends GwtApplication {
static final int WIDTH = 800;
@@ -49,6 +53,14 @@ public class HtmlLauncher extends GwtApplication {
setupResizeHook();
}
});
SaveIO.setFormatProvider(new FormatProvider(){
public String format(Date date){
return "saving not supported";
}
});
return new Mindustry();
}