Rare player network error fix
This commit is contained in:
@@ -391,6 +391,9 @@ public class Vars implements Loadable{
|
||||
|
||||
/** Cleans up after a successful launch. */
|
||||
public static void finishLaunch(){
|
||||
Core.settings.put("lastBuild", Version.build);
|
||||
Core.settings.put("lastBuildString", Version.buildString());
|
||||
|
||||
if(launchIDFile != null){
|
||||
launchIDFile.delete();
|
||||
}
|
||||
|
||||
@@ -423,6 +423,7 @@ public class NetClient implements ApplicationListener{
|
||||
|
||||
@Remote(variants = Variant.one)
|
||||
public static void setPosition(float x, float y){
|
||||
if(player.dead()) return;
|
||||
player.unit().set(x, y);
|
||||
player.set(x, y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user