MehVahdJukaar / sleep_tight

Other
1 stars 9 forks source link

[1.20.1] Bed obstruction space check is offset by 1 block (clipping through a wall bug) #71

Open linkarvane opened 2 months ago

linkarvane commented 2 months ago

This causes an issue where you clip through a wall if you place the bed in a corner

I tested how these checks work and here's what it looks like:

Vanilla behavior (respawning or getting up while/after sleeping): 2024-06-20_21 17 12

Mod behavior (getting up while looking to the right): 2024-06-20_21 25 12

Mod behavior (getting up while looking to the left): 2024-06-20_21 09 11

Upd: this only happens when you're not sleeping, other things such as respawning or getting up by clicking the "Leave bed" button work fine