Merge branch 'master' into longcats

This commit is contained in:
Aaron Suen 2022-04-16 09:02:56 -04:00
commit 53068f5145

View File

@ -48,7 +48,11 @@ local function reg(id, base, spot)
},
stack_max = 1,
paramtype2 = "facedir",
on_place = minetest.rotate_and_place,
on_place = function(stack, placer, pointed, inf, orient, ...)
orient = orient or {}
orient.invert_wall = pointed.above.y == pointed.under.y
return minetest.rotate_and_place(stack, placer, pointed, inf, orient, ...)
end,
sounds = nodecore.sounds(modname .. "_mew"),
preserve_metadata = function(_, _, oldmeta, drops)
drops[1]:get_meta():from_table({fields = oldmeta})