diff --git a/src/lua/LuaScriptInterface.cpp b/src/lua/LuaScriptInterface.cpp index c197d5f2f..10b6c0f25 100644 --- a/src/lua/LuaScriptInterface.cpp +++ b/src/lua/LuaScriptInterface.cpp @@ -2345,6 +2345,10 @@ static int NeighboursClosure(lua_State *l) r = 0; } } + if (cx == px && cy == py) + { + r = 0; + } if (r) { lua_pushnumber(l, x);