I guess everybody will come up with different answers to that.
To me, saying "there is nothing after death" is a simplified model. It asks you to live in the here-and-now, to live in the moment, because that makes you productive today.
Of course, the world won't end when you die. You will leave an impact on the world, kind of a track. Like, when water flows over a landscape long enough, it leaves a river bed. That will stay, even after the water subsides.
So in some sense, death might be your end, but it's not the end. I don't know whether that helped you.