boskee / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
207 stars 33 forks source link

Send returning players their saved position on connect, rather than 0,0 #97

Open Nebual opened 5 years ago

Nebual commented 5 years ago

Looks like there was some confusion between self.position and position.

Also extracted out send_sector() (really that whole networking layer needs to be split up...), and added some recovery if the player falls through the world (on reconnect, place them on top of where they were)