Skip to content

Commit

Permalink
Offset motes from players
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavid04 committed Mar 9, 2024
1 parent 5575147 commit b47237b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static EntityTrickMote create(SpellContext context, Entity target, Runnab
public static EntityTrickMote create(SpellContext context, Runnable effect, Supplier<Vec3> tracker) {
ItemStack cad = PsiAPI.getPlayerCAD(context.caster);
ItemStack colorizer = cad.isEmpty() ? ItemStack.EMPTY : ((ICAD) cad.getItem()).getComponentInSlot(cad, EnumCADComponent.DYE);
Vec3 pos = context.focalPoint.position().add(0, context.focalPoint instanceof Player ? context.focalPoint.getEyeHeight() : 0, 0);
Vec3 pos = context.focalPoint.position().add(0, context.focalPoint instanceof Player ? context.focalPoint.getEyeHeight() - 0.5 : 0, 0);
Vec3 targetPos = tracker.get();
Vec3 delta = targetPos.subtract(pos);
float speed = 1;
Expand Down

0 comments on commit b47237b

Please sign in to comment.