The get_me function is a footgun. If used in update it will cause desyncs in multiplayer. It's mainly meant to be used in render in order to render only the local player's view or in case all views are the same, possibly highlight the local player's character specially or sth.
- just make the function fail unconditionally if invoked from anyhwere but
render
- remove the function entirely and pass the "me" Peer as an argument to
render
The
get_mefunction is a footgun. If used inupdateit will cause desyncs in multiplayer. It's mainly meant to be used inrenderin order to render only the local player's view or in case all views are the same, possibly highlight the local player's character specially or sth.renderrender