Skip to content

Commit 8eaf396

Browse files
committed
fix the from_dict method serializer
1 parent 6783f4c commit 8eaf396

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

worldengine/model/world.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ def __eq__(self, other):
121121

122122
@classmethod
123123
def from_dict(cls, in_dict):
124-
instance = World(in_dict["name"], Size(in_dict["width"], in_dict["height"]))
124+
instance = World(
125+
in_dict["name"], Size(in_dict["width"], in_dict["height"]), in_dict["seed"], in_dict["generation_params"]
126+
)
125127
for k in in_dict:
126128
instance.__dict__[k] = in_dict[k]
127129
return instance

0 commit comments

Comments
 (0)