Skip to content

Commit e24793f

Browse files
more accurate display of function return values
1 parent ae20290 commit e24793f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

functions/Cursor/examples/setCursorPosition.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function centerCursorFunction()
22
-- is cursor showing?
3-
if showisCursorShowing ()ing then
3+
if isCursorShowing() then
44
--get the screen size in pixels
55
local screenX, screenY = guiGetScreenSize ()
66

functions/Cursor/getCursorPosition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ client:
1313
The last 3 values are the 3D world map coordinates that the cursor points at.
1414
If the cursor isn't showing, returns *false* as the first value.
1515
values:
16-
- type: 'float'
16+
- type: 'float|false'
1717
name: 'cursorX'
1818
- type: 'float'
1919
name: 'cursorY'

functions/Element/getElementHealth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ shared: &shared
1515
description: |
1616
Returns a *float* indicating the element's health, *false* otherwise.
1717
values:
18-
- type: 'float'
18+
- type: 'float|false'
1919
name: 'health'
2020
issues:
2121
- id: 3791

functions/Player/getPlayerName.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ shared: &shared
1515
description: |
1616
Returns a *string* containing the requested player's name, or *false* if the player passed to the function is invalid.
1717
values:
18-
- type: 'string'
18+
- type: 'string|false'
1919
name: 'name'
2020

2121
server:

0 commit comments

Comments
 (0)