Are your prayers being hindered?

Why does Revelation 18 say “the light of your lamp will not shine anymore”? Does God stop listening to our prayers when we sin? Why did God bring in the old covenant if He knew the ultimate answer would be the new covenant?