Take topmost food node.
This commit is contained in:
parent
26a5af4c59
commit
1c9eb14202
4
init.lua
4
init.lua
@ -585,8 +585,8 @@ entity_ai.register_factor("near_foodnode", function(self, dtime)
|
||||
})
|
||||
--]]
|
||||
|
||||
-- store grass node in our factor result
|
||||
state.factors.near_foodnode = nodes[1]
|
||||
-- store grass node in our factor result - take topmost in list
|
||||
state.factors.near_foodnode = nodes[#nodes]
|
||||
end)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user