Clear some todos

This commit is contained in:
Sollace 2024-10-01 19:42:51 +01:00
parent 50ca68e52a
commit 156c8aef9b
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
2 changed files with 3 additions and 4 deletions

View file

@ -178,8 +178,8 @@ public class UnicornTeleportAbility implements Ability<Pos> {
yPos,
destination.z() + offset.getZ()
);
// TODO: teleport -> requestTeleport
participant.requestTeleport(dest.x, dest.y, dest.z);
participant.setPosition(dest);
if (participant.getWorld().getBlockCollisions(participant, participant.getBoundingBox()).iterator().hasNext()) {
dest = destination.vec();
participant.requestTeleport(dest.x, participant.getY(), dest.z);

View file

@ -95,8 +95,7 @@ public class DisplacementSpell extends AbstractSpell implements HomingSpell, Pro
}
private void teleport(Caster<?> source, Entity entity, Vec3d pos, Vec3d vel) {
// TODO: teleport -> requestTeleport
entity.requestTeleport(pos.x, pos.y, pos.z);
entity.setPosition(pos);
entity.setVelocity(vel);
entity.setGlowing(false);
entity.playSound(USounds.SPELL_DISPLACEMENT_TELEPORT, 1, 1);