Protect chests from being overwritten by mapgen (#31)

This commit is contained in:
Luke aka SwissalpS 2024-02-28 17:30:07 +01:00 committed by GitHub
parent ad63d3d691
commit cc52a10811
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ function generate_chest_def(def)
choppy=2,
oddly_breakable_by_hand=2
},
is_ground_content = false,
sounds = def.sounds or default.node_sound_wood_defaults(),
after_place_node = function(pos, placer)
local meta = minetest.get_meta(pos)