add default to open_json_file

This commit is contained in:
jomo
2014-07-27 06:01:52 +02:00
parent efc3ee439c
commit d58d975910
2 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
from helpers import *
friends_filename = "plugins/redstoner-utils.py.dir/files/friends.json"
friends = open_json_file(friends_filename) # {Player_UUID:[List_of_friend_uuids]}
friends = open_json_file(friends_filename, {}) # {Player_UUID:[List_of_friend_uuids]}
friend_join_sound = "random.orb"