mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-31 15:35:21 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			322 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			322 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| function core.setting_get_pos(name)
 | |
| 	local value = core.settings:get(name)
 | |
| 	if not value then
 | |
| 		return nil
 | |
| 	end
 | |
| 	return core.string_to_pos(value)
 | |
| end
 | |
| 
 | |
| 
 | |
| -- old non-method sound functions
 | |
| 
 | |
| function core.sound_stop(handle, ...)
 | |
| 	return handle:stop(...)
 | |
| end
 | |
| 
 | |
| function core.sound_fade(handle, ...)
 | |
| 	return handle:fade(...)
 | |
| end
 |