mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-07-19 12:44:58 -04:00
Fixes and Bird Eggs
This commit is contained in:
parent
e4b8396be9
commit
21ad5faf7d
10 changed files with 54 additions and 26 deletions
|
@ -37,6 +37,8 @@ minetest.register_entity("animalia:lasso_entity", {
|
|||
if type(parent) == "string" then
|
||||
parent = minetest.get_player_by_name(parent)
|
||||
local tgt_pos = parent:get_pos()
|
||||
tgt_pos.y = tgt_pos.y + 1
|
||||
point_to.y = point_to.y + pointed_ent.height * 0.5
|
||||
local dist = vec_dist(pos, tgt_pos)
|
||||
if dist > 0.5 then
|
||||
self.object:set_pos(tgt_pos)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue