]> git.localhorst.tv Git - blank.git/blobdiff - src/client/client.cpp
fix client's player entity ID
[blank.git] / src / client / client.cpp
index 773c0be595e06fd95f06aa410bf062c7d0d225f6..9e4ba501b141f3420b2b8eb957429da39e7be5be 100644 (file)
@@ -51,7 +51,7 @@ InteractiveState::InteractiveState(MasterState &master, uint32_t player_id)
 , sounds()
 , save(master.GetEnv().config.GetWorldPath(master.GetWorldConf().name, master.GetConfig().net.host))
 , world(res.block_types, master.GetWorldConf())
-, player(*world.AddPlayer(master.GetConfig().player.name))
+, player(*world.AddPlayer(master.GetConfig().player.name, player_id))
 , hud(master.GetEnv(), master.GetConfig(), player)
 , manip(master.GetEnv().audio, sounds, player.GetEntity())
 , input(world, player, master.GetClient())