Fix the GiantSeaEagle registration, fixes #76

This commit is contained in:
Yohann D'ANELLO 2021-01-10 20:20:12 +01:00
parent 44b967625c
commit 3758cb1336
2 changed files with 3 additions and 3 deletions

View File

@ -419,9 +419,9 @@ class Game:
try:
self.map_index = d["map_index"]
self.maps = [Map().load_state(map_dict) for map_dict in d["maps"]]
except KeyError:
except KeyError as error:
self.message = _("Some keys are missing in your save file.\n"
"Your save seems to be corrupt. It got deleted.")
"Your save seems to be corrupt. It got deleted.") + f"\n{error}"
os.unlink(ResourceManager.get_config_path("save.json"))
self.display_actions(DisplayActions.UPDATE)
return

View File

@ -662,8 +662,8 @@ class Entity:
"Bow": Bow,
"Chest": Chest,
"Chestplate": Chestplate,
"Eagle": GiantSeaEagle,
"FireBallStaff": FireBallStaff,
"GiantSeaEagle": GiantSeaEagle,
"Heart": Heart,
"Hedgehog": Hedgehog,
"Helmet": Helmet,