mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-08 06:26:43 +01:00
Clear some todos
This commit is contained in:
parent
50ca68e52a
commit
156c8aef9b
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue