1
0
Fork 0
This commit is contained in:
Lizzy Fleckenstein 2021-01-05 18:02:41 +01:00
parent 6f49a3d535
commit 5899c2059f
1 changed files with 1 additions and 1 deletions

View File

@ -2776,7 +2776,7 @@ local do_states = function(self, dtime)
p.y = p.y + (self.collisionbox[2] + self.collisionbox[5]) / 2
-- Shoot arrow
if minetest.registered_entities[self.arrow] then
if not minetest.raycast(self.object:get_pos(), self.attack:get_pos(), false, false):next() and minetest.registered_entities[self.arrow] then
local arrow, ent
local v = 1