forked from luanti-org/minetest_game
		
	Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
This commit is contained in:
		| @@ -1,4 +1,10 @@ | ||||
| -- creative/init.lua | ||||
|  | ||||
| -- Load support for MT game translation. | ||||
| local S = minetest.get_translator("creative") | ||||
|  | ||||
| creative = {} | ||||
| creative.get_translator = S | ||||
|  | ||||
| local function update_sfinv(name) | ||||
| 	minetest.after(0, function() | ||||
| @@ -14,7 +20,7 @@ local function update_sfinv(name) | ||||
| end | ||||
|  | ||||
| minetest.register_privilege("creative", { | ||||
| 	description = "Allow player to use creative inventory", | ||||
| 	description = S("Allow player to use creative inventory"), | ||||
| 	give_to_singleplayer = false, | ||||
| 	give_to_admin = false, | ||||
| 	on_grant = update_sfinv, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user