mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Update CONTRIBUTING.md
This commit is contained in:
parent
49044ac15e
commit
4c9eeed499
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ Contributors will be credited in `CREDITS.md`.
|
||||||
|
|
||||||
Each mod must provide `mod.conf`.
|
Each mod must provide `mod.conf`.
|
||||||
Each mod which add API functions should store functions inside a global table named like the mod.
|
Each mod which add API functions should store functions inside a global table named like the mod.
|
||||||
Object oriented API shoud be avoided e.g.:`function mobs.register_mod(self)`
|
Public functions should not use self references but rather just access the table directly.
|
||||||
Functions should be defined in this way:
|
Functions should be defined in this way:
|
||||||
```
|
```
|
||||||
function mcl_xyz.stuff(param) end
|
function mcl_xyz.stuff(param) end
|
||||||
|
|
Loading…
Reference in a new issue