Skip to content

Commit 2f72a06

Browse files
Fix default value of warp in setElementPosition
1 parent 9cededd commit 2f72a06

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

functions/Element/setElementPosition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ shared: &shared
2727
description: 'The z coordinate of the destination.'
2828
- name: 'warp'
2929
type: 'bool'
30-
default: 'false'
30+
default: 'true'
3131
description: 'teleports players, resetting any animations they were doing. Setting this to false preserves the current animation.'
3232
returns:
3333
description: |

web/src/pages/[func].astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ let funcSyntaxes = parseFunctionSyntaxes(func.id, func.data);
7979
<!-- OOP Syntax -->
8080
{funcInfo.oop && (
8181
<>
82-
<h5>OOP Syntax <a class="small-text" href="/OOP_Introduction">Help! I don't understand this!</a></h5>
82+
<h3>OOP Syntax <a class="small-text" href="/OOP_Introduction">Help! I don't understand this!</a></h3>
8383
<ul>
8484
{funcInfo.oop.method && (
8585
<li>
@@ -143,7 +143,9 @@ let funcSyntaxes = parseFunctionSyntaxes(func.id, func.data);
143143
.filter((param: any) => param.default)
144144
.map((param: any) => (
145145
<li
146-
set:html={`<strong>${param.name}</strong>: ${renderInlineMarkdown(param.description)}`}
146+
set:html={
147+
`<strong>${param.name}</strong> (default: <em>${param.default}</em>): ${renderInlineMarkdown(param.description)}`
148+
}
147149
/>
148150
))}
149151
</ul>

0 commit comments

Comments
 (0)