From a99df2892aabf202446c29d71b8a39b37865a473 Mon Sep 17 00:00:00 2001 From: tidwall Date: Wed, 25 Mar 2020 12:47:55 -0700 Subject: [PATCH] Fixed false faraway notifications --- internal/server/fence.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/server/fence.go b/internal/server/fence.go index 5674c302..97b548bb 100644 --- a/internal/server/fence.go +++ b/internal/server/fence.go @@ -420,6 +420,7 @@ func fenceMatchRoam( // dwelling, more from old-nearbys oldNearbys[i] = oldNearbys[len(oldNearbys)-1] oldNearbys = oldNearbys[:len(oldNearbys)-1] + i-- if fence.nodwell { // no dwelling allowed, remove from both lists newNearbys[j] = newNearbys[len(newNearbys)-1]