mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add minetest.settings
to CSM API and allow CSMs to provide settingtypes.txt
(#12131)
Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
parent
839600ed70
commit
6ec6acc539
9 changed files with 61 additions and 0 deletions
|
@ -165,6 +165,9 @@ core.after(5, function()
|
|||
|
||||
print("[PREVIEW] Find node near: " .. dump(core.find_node_near({x=0, y=20, z=0}, 10,
|
||||
{"group:tree", "default:dirt", "default:stone"})))
|
||||
|
||||
print("[PREVIEW] Settings: preview_csm_test_setting = " ..
|
||||
tostring(core.settings:get_bool("preview_csm_test_setting", false)))
|
||||
end)
|
||||
|
||||
core.register_on_dignode(function(pos, node)
|
||||
|
|
1
clientmods/preview/settingtypes.txt
Normal file
1
clientmods/preview/settingtypes.txt
Normal file
|
@ -0,0 +1 @@
|
|||
preview_csm_test_setting (Test CSM setting) bool false
|
Loading…
Add table
Add a link
Reference in a new issue