diff --git a/init.lua b/init.lua index 0bc490f..8b00cd2 100644 --- a/init.lua +++ b/init.lua @@ -22,6 +22,7 @@ local function shoot_arrow(itemstack, player) if luaentity.on_throw then if luaentity.on_throw(pos, player, ((player:get_wield_index()+1) % inventory:get_size("main")) + 1, luaentity.data, luaentity) == false then + obj:remove() return false end end