develop-turtleGame #6
@@ -46,8 +46,8 @@ public class Turtle extends EntityCreature {
|
||||
this.removePassenger(this.player);
|
||||
this.remove();
|
||||
this.kill();
|
||||
Pupsi marked this conversation as resolved
Outdated
|
||||
if(this.boostRefillTask.isAlive()) this.boostRefillTask.cancel();
|
||||
if(this.boostTask.isAlive()) this.boostTask.cancel();
|
||||
if(this.boostRefillTask != null && this.boostRefillTask.isAlive()) this.boostRefillTask.cancel();
|
||||
if(this.boostTask != null && this.boostTask.isAlive()) this.boostTask.cancel();
|
||||
}
|
||||
|
||||
public void adaptView() {
|
||||
@@ -82,7 +82,7 @@ public class Turtle extends EntityCreature {
|
||||
}
|
||||
|
||||
public void cancelBoost() {
|
||||
if(!this.boostTask.isAlive()) return;
|
||||
if(this.boostTask == null || !this.boostTask.isAlive()) return;
|
||||
this.boostTask.cancel();
|
||||
this.boostSpeedMultiplier = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user
kill nach remove? macht das überhaupt irgendwas?
nein