In prefabs\merms.lua:432-436,
local function ShouldSleep(inst) return NocturnalSleepTest(inst) and ((inst.components.follower == nil or inst.components.follower.leader) == nil and not TheWorld.components.mermkingmanager and TheWorld.components.mermkingmanager:IsCandidate(inst)) end
Due to the wrong position of parentheses,
not TheWorld.components.mermkingmanager
is always false, which results in the returning value always false. Therefore, merms do not go sleep naturally at any time.
Steps to Reproduce
As above, check the function plz
-
5
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now