develop-turtleGame #6
@@ -30,8 +30,7 @@ public class Turtle extends EntityCreature {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void spawnTurtle() {
|
public void spawnTurtle() {
|
||||||
this.setInstance(this.player.getInstance());
|
this.setInstance(this.player.getInstance(), this.player.getPosition());
|
||||||
this.teleport(this.player.getPosition());
|
|
||||||
this.addPassenger(this.player);
|
this.addPassenger(this.player);
|
||||||
Pupsi marked this conversation as resolved
|
|||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,7 +44,6 @@ public class Turtle extends EntityCreature {
|
|||||||
public void destroy() {
|
public void destroy() {
|
||||||
this.removePassenger(this.player);
|
this.removePassenger(this.player);
|
||||||
this.remove();
|
this.remove();
|
||||||
this.kill();
|
|
||||||
if(this.boostRefillTask != null && this.boostRefillTask.isAlive()) this.boostRefillTask.cancel();
|
if(this.boostRefillTask != null && this.boostRefillTask.isAlive()) this.boostRefillTask.cancel();
|
||||||
if(this.boostTask != null && this.boostTask.isAlive()) this.boostTask.cancel();
|
if(this.boostTask != null && this.boostTask.isAlive()) this.boostTask.cancel();
|
||||||
Pupsi marked this conversation as resolved
Outdated
MineTec
commented
kill nach remove? macht das überhaupt irgendwas? kill nach remove? macht das überhaupt irgendwas?
Pupsi
commented
nein nein
|
|||||||
}
|
}
|
||||||
@@ -76,7 +74,6 @@ public class Turtle extends EntityCreature {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.boostChargeLevel = Math.max(0f, this.boostChargeLevel - 0.025f);
|
this.boostChargeLevel = Math.max(0f, this.boostChargeLevel - 0.025f);
|
||||||
System.out.println(this.boostChargeLevel);
|
|
||||||
this.player.setExp(this.boostChargeLevel);
|
this.player.setExp(this.boostChargeLevel);
|
||||||
}, TaskSchedule.millis(30), TaskSchedule.millis(30));
|
}, TaskSchedule.millis(30), TaskSchedule.millis(30));
|
||||||
}
|
}
|
||||||
Pupsi marked this conversation as resolved
MineTec
commented
raus raus
|
|||||||
|
Reference in New Issue
Block a user
statt teleport bei setInstance übergeben