Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sitting when no air above chair #14

Open
Bastrabun opened this issue Nov 15, 2020 · 0 comments
Open

No sitting when no air above chair #14

Bastrabun opened this issue Nov 15, 2020 · 0 comments
Labels

Comments

@Bastrabun
Copy link

Could you make it that players cannot sit down on a chair when there is no air node above? If they do so, their head will be inside the node enabling them to xray the wall.

Untested:

if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name ~= "air" then
	minetest.chat_send_player(player:get_player_name(), 'You can only sit down when you are not going to bonk your head.')
	return
end
@sfan5 sfan5 added the bug label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants