Skip to content

Commit

Permalink
0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
arpruss committed Jun 10, 2015
1 parent b4d1cb0 commit f39e6d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {

apply plugin: 'forge'

version = "0.20"
version = "0.21"
group= "mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "RaspberryJamMod"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,9 @@ private void socketCommunicate(Socket connectionSocket) {

APIHandler api = new APIHandler(eventHandler, writer);

System.out.println("waiting");
while(null != (clientSentence = reader.readLine())) {
System.out.println("go");
api.process(clientSentence);
}
System.out.println("waited");
} catch (Exception e) {
System.out.println(""+e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
public class RaspberryJamMod
{
public static final String MODID = "raspberryjammod";
public static final String VERSION = "0.17";
public static final String VERSION = "0.21";
public static final String NAME = "Raspberry Jam Mod";
private APIServer mcc;
private PythonExternalCommand pythonExternalCommand = null;
public static Configuration configFile;
public static int portNumber = 4711;
public static boolean concurrent = true;

@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
configFile = new Configuration(event.getSuggestedConfigurationFile());
Expand All @@ -57,11 +57,11 @@ public void preInit(FMLPreInitializationEvent event) {

synchronizeConfig();
}

public static void synchronizeConfig() {
portNumber = configFile.getInt("Port Number", Configuration.CATEGORY_GENERAL, 4711, 1, 65535, "Port number");
concurrent = configFile.getBoolean("Multiple connections", Configuration.CATEGORY_GENERAL, true, "Multiple connections");
concurrent = configFile.getBoolean("Multiple Connections", Configuration.CATEGORY_GENERAL, true, "Multiple connections");

if (configFile.hasChanged())
configFile.save();
}
Expand Down

0 comments on commit f39e6d3

Please sign in to comment.