From 6d8c5ed917226d50f14b360c0d766c41e2cd16c7 Mon Sep 17 00:00:00 2001 From: lars Date: Wed, 15 Oct 2025 21:33:17 +0200 Subject: [PATCH] solved pr comments --- .../game/stateless/types/turtleGame/gameObjects/Turtle.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/eu/mhsl/minenet/minigames/instance/game/stateless/types/turtleGame/gameObjects/Turtle.java b/src/main/java/eu/mhsl/minenet/minigames/instance/game/stateless/types/turtleGame/gameObjects/Turtle.java index 539ee8d..cbcd537 100644 --- a/src/main/java/eu/mhsl/minenet/minigames/instance/game/stateless/types/turtleGame/gameObjects/Turtle.java +++ b/src/main/java/eu/mhsl/minenet/minigames/instance/game/stateless/types/turtleGame/gameObjects/Turtle.java @@ -30,8 +30,7 @@ public class Turtle extends EntityCreature { } public void spawnTurtle() { - this.setInstance(this.player.getInstance()); - this.teleport(this.player.getPosition()); + this.setInstance(this.player.getInstance(), this.player.getPosition()); this.addPassenger(this.player); } @@ -45,7 +44,6 @@ public class Turtle extends EntityCreature { public void destroy() { this.removePassenger(this.player); this.remove(); - this.kill(); if(this.boostRefillTask != null && this.boostRefillTask.isAlive()) this.boostRefillTask.cancel(); if(this.boostTask != null && this.boostTask.isAlive()) this.boostTask.cancel(); } @@ -76,7 +74,6 @@ public class Turtle extends EntityCreature { return; } this.boostChargeLevel = Math.max(0f, this.boostChargeLevel - 0.025f); - System.out.println(this.boostChargeLevel); this.player.setExp(this.boostChargeLevel); }, TaskSchedule.millis(30), TaskSchedule.millis(30)); }