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. */
|
/** Cleans up after a successful launch. */
|
||||||
public static void finishLaunch(){
|
public static void finishLaunch(){
|
||||||
|
Core.settings.put("lastBuild", Version.build);
|
||||||
|
Core.settings.put("lastBuildString", Version.buildString());
|
||||||
|
|
||||||
if(launchIDFile != null){
|
if(launchIDFile != null){
|
||||||
launchIDFile.delete();
|
launchIDFile.delete();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -423,6 +423,7 @@ public class NetClient implements ApplicationListener{
|
|||||||
|
|
||||||
@Remote(variants = Variant.one)
|
@Remote(variants = Variant.one)
|
||||||
public static void setPosition(float x, float y){
|
public static void setPosition(float x, float y){
|
||||||
|
if(player.dead()) return;
|
||||||
player.unit().set(x, y);
|
player.unit().set(x, y);
|
||||||
player.set(x, y);
|
player.set(x, y);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user