mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
[CSM] Fix and improve minetest.get_language()
Previously this method would accidentally reset the locale and break everything.
This commit is contained in:
parent
2c4cf508a9
commit
c44318a253
3 changed files with 21 additions and 9 deletions
|
@ -9,13 +9,18 @@ core.register_on_shutdown(function()
|
|||
end)
|
||||
local id = nil
|
||||
|
||||
local server_info = core.get_server_info()
|
||||
print("Server version: " .. server_info.protocol_version)
|
||||
print("Server ip: " .. server_info.ip)
|
||||
print("Server address: " .. server_info.address)
|
||||
print("Server port: " .. server_info.port)
|
||||
do
|
||||
local server_info = core.get_server_info()
|
||||
print("Server version: " .. server_info.protocol_version)
|
||||
print("Server ip: " .. server_info.ip)
|
||||
print("Server address: " .. server_info.address)
|
||||
print("Server port: " .. server_info.port)
|
||||
|
||||
print("CSM restrictions: " .. dump(core.get_csm_restrictions()))
|
||||
print("CSM restrictions: " .. dump(core.get_csm_restrictions()))
|
||||
|
||||
local l1, l2 = core.get_language()
|
||||
print("Configured language: " .. l1 .. " / " .. l2)
|
||||
end
|
||||
|
||||
mod_channel = core.mod_channel_join("experimental_preview")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue