mirror of
https://gitlab.com/echoes91/spears.git
synced 2024-11-13 13:20:19 +01:00
Update file functions.lua
This commit is contained in:
parent
440c620bf0
commit
57c840451c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user