1
0
mirror of https://github.com/Sokomine/cottages.git synced 2026-01-14 04:55:40 +01:00

rewrite sitting/sleeping

- makes use of the modern player_api
- fixes a crash due to api-change in set_physics_override
- fixes eye offset issue
This commit is contained in:
tour
2025-09-07 18:37:51 +02:00
parent cb9bbb0989
commit 280316e404
3 changed files with 113 additions and 171 deletions

View File

@@ -61,7 +61,7 @@ minetest.register_node("cottages:straw_mat", {
paramtype = 'light',
paramtype2 = "facedir",
walkable = false,
groups = { hay = 3, snappy = 2, oddly_breakable_by_hand = 2, flammable=3 },
groups = { hay = 3, snappy = 2, oddly_breakable_by_hand = 2, flammable=3 , sleeping_mat=1, },
sounds = cottages.sounds.leaves,
node_box = {
type = "fixed",