mirror of
				https://gitlab.com/rubenwardy/awards.git
				synced 2025-10-27 03:05:32 +01:00 
			
		
		
		
	Fix error due to unchecked JSON parsing
This commit is contained in:
		| @@ -80,7 +80,8 @@ function awards.load() | ||||
| 		os.rename(old_save_path, minetest.get_worldpath().."/awards.bk.txt") | ||||
| 		awards.save() | ||||
| 	else | ||||
| 		__player_data = minetest.parse_json(storage:get_string("player_data")) or {} | ||||
| 		local json = storage:get("player_data") | ||||
| 		__player_data = json and minetest.parse_json(json) or {} | ||||
| 	end | ||||
| end | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user