fix missing variable

This commit is contained in:
crabman77 2015-10-26 17:06:29 +01:00
parent 1fb71f6701
commit 28c8558cd5
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
local node = minetest.get_node(pos)
local objs = minetest.get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 0.5)
for k, obj in pairs(objs) do
local objpos = obj:getpos()
if throwing_is_player(self.player, obj) or throwing_is_entity(obj) then
if throwing_touch(pos, objpos) then
local puncher = self.object