Skip to content
This repository was archived by the owner on Apr 27, 2019. It is now read-only.

Commit b92209f

Browse files
committed
Merge branch 'master' of github.com:XenoWanderer/StarryPy into XenoWanderer-master
2 parents cab7f4e + 31d4483 commit b92209f

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

packets/packet_types.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,8 @@ def _decode(self, obj, context):
178178

179179

180180
world_start = lambda name="world_start": Struct(name,
181-
VLQ("planet_size"),
182-
Bytes("planet", lambda ctx: ctx.planet_size),
183-
VLQ("world_structure_size"),
184-
Bytes("world_structure",
185-
lambda ctx: ctx.world_structure_size),
181+
Variant("planet"),
182+
Variant("world_structure"),
186183
VLQ("sky_size"),
187184
Bytes("sky",
188185
lambda ctx: ctx.sky_size),
@@ -191,8 +188,8 @@ def _decode(self, obj, context):
191188
BFloat32("spawn_x"),
192189
BFloat32("spawn_y"),
193190
update_world_properties("world_properties"),
194-
SBInt32("unknown1"),
195-
Flag("unknown2"))
191+
UBInt32("client_id"),
192+
Flag("local"))
196193

197194
world_stop = lambda name="world_stop": Struct(name,
198195
star_string("status"))

0 commit comments

Comments
 (0)