Replace deprecated function calls
[oweals/minetest_game.git] / mods / bones / init.lua
index 480a55c4847ff577434873a6c6ea20913d11e758..0043118d205f35041343611262616053088b86b0 100644 (file)
@@ -159,7 +159,7 @@ end
 local drop = function(pos, itemstack)
        local obj = minetest.add_item(pos, itemstack:take_item(itemstack:get_count()))
        if obj then
-               obj:setvelocity({
+               obj:set_velocity({
                        x = math.random(-10, 10) / 9,
                        y = 5,
                        z = math.random(-10, 10) / 9,