Skip to content

Commit

Permalink
syntax cleanup
Browse files Browse the repository at this point in the history
If no global was declared, we shouldn't do so with our dummy function
  • Loading branch information
SwissalpS committed Mar 30, 2021
1 parent 60517bc commit 88b37fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- read the readme.md for more info on origin.

-- safety check in case translation function does not exist
if not minetest.global_exists('S') then S = function(s) return s end end
local S = (minetest.global_exists('S') and S) or function(s) return s end

--settings
postool = {
Expand Down

0 comments on commit 88b37fb

Please sign in to comment.