Message cleanup / Player target reset

This commit is contained in:
Anuken
2018-12-10 14:10:54 -05:00
parent 271dcd46bc
commit 8debf8caf8
2 changed files with 4 additions and 0 deletions

View File

@@ -787,6 +787,8 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
placeQueue.clear(); placeQueue.clear();
dead = true; dead = true;
trail.clear(); trail.clear();
target = null;
moveTarget = null;
carrier = null; carrier = null;
health = maxHealth(); health = maxHealth();
boostHeat = drownTime = hitTime = 0f; boostHeat = drownTime = hitTime = 0f;

View File

@@ -90,6 +90,8 @@ public class KryoServer implements ServerProvider{
threads.runDelay(() -> { threads.runDelay(() -> {
try{ try{
Net.handleServerReceived(k.id, object); Net.handleServerReceived(k.id, object);
}catch(ValidateException e){
Log.err("Validate failed: {0} ({1})", e.player.name, e.getMessage());
}catch(Exception e){ }catch(Exception e){
e.printStackTrace(); e.printStackTrace();
} }