From 96e4d5190e26ca3aec1b16f6b3894635507a505e Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 23 Sep 2023 13:42:23 +0100 Subject: [PATCH] initial_properties #2 --- api.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api.lua b/api.lua index b605595..6eb98ef 100644 --- a/api.lua +++ b/api.lua @@ -4216,7 +4216,8 @@ function mobs:register_arrow(name, def) visual_size = def.visual_size, textures = def.textures, collisionbox = def.collisionbox or {-.1, -.1, -.1, .1, .1, .1}, - glow = def.glow + glow = def.glow, + automatic_face_movement_dir = def.rotate and (def.rotate - (pi / 180)) or false, }, velocity = def.velocity, @@ -4231,8 +4232,6 @@ function mobs:register_arrow(name, def) owner_id = def.owner_id, rotate = def.rotate, - automatic_face_movement_dir = def.rotate and (def.rotate - (pi / 180)) or false, - on_activate = def.on_activate, on_punch = def.on_punch or function(self, hitter, tflp, tool_capabilities, dir)