diff --git a/functions.lua b/functions.lua index f8e6752..ed16a05 100644 --- a/functions.lua +++ b/functions.lua @@ -123,8 +123,8 @@ function spears_set_entity(spear_type, base_damage, toughness) minetest.add_item(pos, {name='spears:spear_' .. spear_type, wear = wear}) return false elseif check_node == 'sticky' then - self.object:set_acceleration(vector3(0, 0, 0):Unpack()) - self.object:set_velocity(SPEARS_V_ZERO) + self.object:set_acceleration({x = 0, y = 0, z = 0}) + self.object:set_velocity({x = 0, y = 0, z = 0}) minetest.sound_play("default_place_node", {pos = pos}, true) self._stickpos = spearhead_pos self._wear = wear