Cannot use 0 as a default public segment
-
if(!runResult.activeForeignSegment.id && user.defaultPublicSegment) {
Will only work if
user.defaultPublicSegment
is non-zero.Docs say it can be 0-99 https://docs.screeps.com/api/#RawMemory.setDefaultPublicSegment
-
related to: https://screeps.com/forum/topic/2922/unable-to-read-other-players-segments-using-the-rawmemory-component/11 ? thought that was fixed though
-
Was still there, so i made a PR.