Freebsd issue?
#1
I have a Freebsd machine running Cuberite

It runs fine without major problems

but I am stuck making Lua plugins because using ForEachEntity function and relavant callbackfunction gives me segfault error

Please help me Cry


function GetIf(Name)
    -- Check if unique mob matching name exist
    cRoot:Get():ForEachWorld(
        function (w)
        LOG("fetching from " .. w:GetName())
            w:ForEachEntity(
              function (e)
                    if not(e:IsMob()) then
                        return true
                    else
                        return true
                    end
                end
            )
        end
    )
end
Reply
Thanks given by:


Messages In This Thread
Freebsd issue? - by wpmaster - 04-06-2017, 03:07 PM
RE: Freebsd issue? - by xoft - 04-06-2017, 05:41 PM
RE: Freebsd issue? - by wpmaster - 04-06-2017, 06:14 PM
RE: Freebsd issue? - by wpmaster - 04-07-2017, 01:24 AM
RE: Freebsd issue? - by Seadragon91 - 04-06-2017, 06:28 PM
RE: Freebsd issue? - by wpmaster - 04-06-2017, 07:18 PM
RE: Freebsd issue? - by Seadragon91 - 04-07-2017, 02:39 AM
RE: Freebsd issue? - by wpmaster - 04-07-2017, 03:21 AM
RE: Freebsd issue? - by Seadragon91 - 04-07-2017, 02:59 AM
RE: Freebsd issue? - by wpmaster - 04-07-2017, 03:23 AM
RE: Freebsd issue? - by Seadragon91 - 04-07-2017, 03:24 AM
RE: Freebsd issue? - by wpmaster - 04-07-2017, 06:23 AM



Users browsing this thread: 1 Guest(s)