From 57c840451c0cb88e5f8779f703521622a8ec48a8 Mon Sep 17 00:00:00 2001 From: Echoes Date: Wed, 7 Feb 2024 21:49:31 +0000 Subject: [PATCH] Update file functions.lua --- functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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