Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

[BUG] [Fabric] Players seem to be teleported after entering a wrong password and joining the server again #34

Open
1 of 2 tasks
IotaBread opened this issue Oct 21, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@IotaBread
Copy link

IotaBread commented Oct 21, 2020

Mod Loader

  • Fabric
  • Forge

Versions

  • SimpleAuth 1.6.1
  • Fabric API 0.23.0+build.410

Describe the bug
For some reason, players are teleported to a different position from the one that they logged out from (probably a position stored on the database). As far as I know, this has only happened after updating the mod to 1.6.

To Reproduce
Steps to reproduce the behaviour:
(Probably you won't be able to reproduce it like this, but this is how the player that reported the issue to me reproduced it)

  1. Enter a server, move around a bit and leave it until the session expires, repeat.
  2. Enter the server and try logging with a wrong password.
  3. Enter the server again.
  4. See that the position you left is different from the position you are on.

Expected behaviour
The player should not be teleported to another position after entering a wrong password

Additional context
Note that we moved from SimpleAuth 1.5, so that could be related to the issue.
We have maxLoginTries set to 1 on the config.
Here is a log of the situation

[00:46:06] [Server thread/INFO]: FrancixX[/] logged in with entity id 850303 at (1137.2919169802237, 58.0, 2390.6704544124805)
[00:46:06] [Server thread/INFO]: FrancixX joined the game
[00:46:11] [Server thread/INFO]: FrancixX lost connection: §4Wrong password!
[00:46:11] [Server thread/INFO]: FrancixX left the game
[00:46:11] [Server thread/WARN]: handleDisconnection() called twice
[00:46:15] [Server thread/INFO]: FrancixX[/] logged in with entity id 850602 at (1132.1919952388205, 63.5, 2392.721017794696)
[00:46:15] [Server thread/INFO]: FrancixX joined the game
@IotaBread IotaBread added the bug Something isn't working label Oct 21, 2020
@samolego
Copy link
Owner

Yep, there's a problem with updating to 1.6 😢 , I don't know if it's worth to release a bugfix though, since coordinates are then no longer stored in DB ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants