1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-28 06:30:18 +02:00

tweak n tidy

This commit is contained in:
tenplus1
2024-11-30 12:35:22 +00:00
parent 58792311c7
commit cc60499637
2 changed files with 72 additions and 140 deletions

View File

@ -22,7 +22,7 @@ local abs, cos, floor, sin, sqrt, pi =
-- helper functions
local node_ok = function(pos, fallback)
local function node_ok(pos, fallback)
fallback = fallback or mobs.fallback_node
@ -454,7 +454,7 @@ function mobs.fly(entity, _, speed, shoots, arrow, moving_anim, stand_anim)
if ent then
ent.switch = 1 -- for mob specific arrows
ent.owner_id = tostring(entity.object) -- so arrows dont hurt entity you are riding
ent.owner_id = tostring(entity.object) -- so arrows dont hurt mob
local vec = {x = dir.x * 6, y = dir.y * 6, z = dir.z * 6}