Fixed some crashes, changed some colors

This commit is contained in:
Anuken
2018-01-10 21:34:01 -05:00
parent d8f94384e0
commit d6bc6bf88c
8 changed files with 30 additions and 13 deletions

View File

@@ -61,16 +61,16 @@ public class Player extends DestructibleEntity implements Syncable{
@Override
public void onDeath(){
Effects.effect(Fx.explosion, this);
Effects.shake(4f, 5f, this);
Effects.sound("die", this);
if(isLocal){
remove();
}else{
set(-9999, -9999);
}
Effects.effect(Fx.explosion, this);
Effects.shake(4f, 5f, this);
Effects.sound("die", this);
//TODO respawning doesn't work properly for multiplayer at all
if(isLocal) {
Vars.control.setRespawnTime(respawnduration);