Fixes a bug where lag can cancel out teleporting when moving