Skip to content

Commit 52c9688

Browse files
authored
fix(paper/dev): display guide uses wrong setTeleportDuration values (#690)
* fix(paper/dev): display guide use wrong setTeleportDuration values Took 2 minutes * for not sure why I suppose 20 * 5 <= 59 Took 3 minutes
1 parent d361981 commit 52c9688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/paper/dev/api/entity-api/display-entities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ other properties of the transformation, those too will be interpolated, which ma
211211
// new position will be 10 blocks higher
212212
Location newLocation = display.getLocation().add(0, 10, 0);
213213

214-
display.setTeleportDuration(20 * 10); // the movement will take 10 seconds (1 second = 20 ticks)
214+
display.setTeleportDuration(20 * 2); // the movement will take 2 seconds (1 second = 20 ticks)
215215
display.teleport(newLocation); // perform the movement
216216
```
217217

0 commit comments

Comments
 (0)