Paper
Paper copied to clipboard
Player vs OfflinePlayer getBedSpawnLocation
Expected behavior
When calling getBedSpawnLocation on an instance of CraftPlayer or CraftOfflinePlayer the result should be the same (or the discrepancy should be documented and predictable)
Observed/Actual behavior
They are different as shown here
test
[16:05:20 INFO]: [Paper-Test-Plugin] [STDOUT] online: true
[16:05:20 INFO]: [Paper-Test-Plugin] [STDOUT] spawn: Location{world=CraftWorld{name=world_nether},x=-7.5,y=89.0,z=-18.5,pitch=0.0,yaw=0.0}
[16:05:22 INFO]: Machine_Maker lost connection: Disconnected
[16:05:22 INFO]: Machine_Maker left the game
test
[16:05:27 INFO]: [Paper-Test-Plugin] [STDOUT] online: false
[16:05:27 INFO]: [Paper-Test-Plugin] [STDOUT] spawn: Location{world=CraftWorld{name=world_nether},x=-8.0,y=89.0,z=-18.0,pitch=0.0,yaw=0.0}
Steps/models to reproduce
- Set your spawn in the world
- Log the player's bed spawn loc
- log out
- get the instance of offlineplayer
- log the bed spawn loc
Plugin and Datapack List
none
Paper version
af3b3778f6de06af48de08d41a43565d3ff19976
Other
No response
This is already fixed not?
Afaik, no. The location is still different.
Afaik, no. The location is still different.
Ahhh i see now.. the issue is more like by "findRespawnPositionAndUseSpawnBlock" where change the position a few... then not sure if is better try using this in OfflinePlayer or only add in docs for OfflinePlayer about the "exactly" position for bed?