Players can appear in ceilings or walls when dismounting chairs
LadyCailinBot opened this issue ยท 2 comments
CRAFTBOOK-3198 - Reported by Rhisereld
This can cause the player to take damage, or clip through half blocks that appear above the chair.
It appears that when a player dismounts a chair they appear standing on exactly one upper corner of that chair. If there isn't at least two spaces of room above that chair, they will suffocate and get pushed to a valid location. Sometimes this will kill players if there isn't a nearby space for them.
I can see two possible solutions for this.
- Store the previous position of a player while they are sitting and return them there when they dismount
- Chairs without two empty spaces above them should be obstructed (currently only 1 space required).
I am currently using CraftBook version 3.9 and Spigot 1.8.8. Attached is an example of a chair which will cause the player to suffocate when they dismount due to the ceiling.
Comment by me4502
Originally it was using the vanilla methods of placing the player somewhere, however this kept putting them on the below floor if it existed. I'll implement storing of locations, as that seems like the best way of doing it.