04-06-2017, 03:07 PM
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
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
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
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