Skip to content

Traveller's Backpacks Sleeping bag (and potentially others) can cause a player to respawn out of the world coordinates. #1370

Description

@victhor003dev

Description

0.INFO
Neoforge 1.21.1-21.1.238
Traveller's Backpack 1.21.1 Neoforge 10.1.36
Sable 2.0.3
Create 6.0.10

  1. Describe the bug
    -When a player, that has a respawn point bed set in a sable sublevel sleeps in a sleeping bag, the next time they die they will respawn out of the world, trying to respawn in the sublevel's coordinates in the real world, sending the player out of the world and crashing until brought back to normal coordinates

  2. Write steps to reproduce the bug

  • Make a sublevel
  • Set your respawn point with a bed with the sublevel
  • Pass the night on the ground with a sleeping bag
  • Die
  • If on single player, observe how you are unable to interact briefly with the world as the server tries to process absurd coordinates before you crash (To fix in single player you will need to modify player data with NBT Explorer, on a Dedicated server you can freeze the game before logging in, alowing you to enter and teleport normally)
  1. What is expected behaviour
    Ideally, using a sleeping bag should not break the player's capacity of respawning in a sublevel normally

EXTRA INFORMATION:
I've done the debugging myself to see if i can patch it with kubejs, i can, what's happening is that, when using the sleeping bag, the player looses the RespawnPoint: special nbt data that sable adds to the player to respawn them in the sublevel, causing the player to read the coordinates of the sublevel that are set in the normal SpawnX, SpawnY and SpawnZ data values, causing an out of game bounds respawn and thus crashing upon the server trying to tick and getting the player's coordinates

I've crafted the log file specifically for the report, in the log you will see 2 outputs of my player data, the first after right clicking a bed on the sublevel, the second one is after right clicking a sleeping bag, a special kind of bed that DOES NOT move your respawn point, this is the reason i'm choosing to report this to sable too

I've reported this directly to traveller's backpacks first, but since i'm afraid it can happen with other mods i've chosen to report it directly to sable too

Game Log

https://mclo.gs/WnnTB1t

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions