Compare commits

...

2 Commits

Author SHA1 Message Date
OgelGames
26580085f3
fix copy-paste mistakes in docs 2024-10-30 02:03:59 +11:00
OgelGames
c1cf529712 add is_valid() function to fake player
8ed55b3aff
2024-07-05 11:37:52 +10:00
2 changed files with 7 additions and 3 deletions

6
API.md
View File

@ -59,7 +59,7 @@ Creates a new fake player.
#### **`fakelib.create_inventory([sizes])`**
Creates a new fake player.
Creates a new fake inventory.
**Arguments**
@ -67,7 +67,7 @@ Creates a new fake player.
#### **`fakelib.create_metadata([data])`**
Creates a new fake player.
Creates a new fake metadata object.
**Arguments**
@ -134,4 +134,4 @@ local data = {
energy = 300,
}
local meta = fakelib.create_metadata(data)
```
```

View File

@ -441,6 +441,10 @@ function fake_player.hud_get_hotbar_selected_image()
return ""
end
function fake_player.is_valid()
return true
end
-- No-op functions
----------------------------------------
do