If a player on a server sleeps in a bed placed next to solid blocks, when they wake up they will often take a point of suffocation damage, as though they were temporarily placed inside the solid blocks.
The player does not visually appear inside the solid block, but is instead placed on a valid clear block.
This is very noticeable if you have placed a bed in the corner of a room, as you are likely to take damage from the walls of the room, even though you are placed on the clear side of the bed.
Linked issues
is duplicated by 1
Attachments
Comments 12
I have tested this with multiple past PC versions, the Windows 10 version, Pocket Edition, and the Console Edition, and I can confirm it on each and every one of them.
Please attach the complete output of the "Game Output (Your Minecraft name) " which can be found on the fourth tab of the launcher to this ticket. Just in case, please force a crash (F3+C), and attach it to this ticket.
OK, attached is a screenshot of the bed I'm sleeping in on a server, with debug info listed so you can see where the solid blocks are relative to the bed. Upon waking up, I took 1 point of suffocation damage, but was placed in the open space to the side of the bottom half of the bed.
I immediately generated a crash, and have attached the client log and the crash log.
This problem affects multiple players and occurs on multiple servers, so it isn't some player- or server-specific glitch.
The client log isn't helping.
By the way, remove your session ID from the logs before you post them. It can be a security issue.
I'll take a look at the crash report, so stay tuned.
Just looked at the crash report, and I couldn't find anything useful (unless I'm being really blind). However, I did take a look at some of the calculations that are made when a player exits a bed. If I am correct, the game forces a player to exit the bed and spawn on the block to the right side of the bed, and then detects for a solid block on that side after the player has already exited the bed. In theory, it should then test the left side, and if it is not open, the side at the foot of the bed, and so on and so forth. This does not only affect multiplayer, as it has happened to me in single player worlds. Upon testing my theory in 1.9, I noticed that when I placed a bed with the left side against the wall, there was no suffocation damage taken. I believe that you are taking the suffocation damage because you have the right side of the bed facing a solid block. Try placing it on the opposite side of the building, and see if that helps.
Cannot reproduce for 1.13.1.
Tried this on a multiplayer server for 1.13.1, my ping to the server was 95ms.
I only glitched in a block with this
[media]; which isn't a bug since it has no space around the bed.
Sorry for the necro-post but this says it's still waiting confirmation - has occurred for me in Java 1.16.4. (I came here because I noticed this issue for the first time but it's the first time in a long time I've laid a bed against a wall.) While laying in bed, stone brick along right (east) side, iron bars behind head, rest is empty. Bed is on stone brick, 1 block high empty above bed.
This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff on Discord or Reddit.
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit
I think some calsulation is offset. I voted for this.