You assume the change would be made on the fly, and only to that individual natural law. If the change were made not just to the law, but all storage related to the law (ie, I don’t just change the id of one element, I have to also update that id anywhere it is stored or I break something), then we wouldn’t know it had ever been different, except by possibly noticing that an object is now in a different position than we think it should be. And even that would depend on how much data update a patch had caused. Perhaps the update goes all the way down to update the stored paramaters of how fast the ball was thrown, not just the force pulling it down. And in a simulation, our own memories are just storage locations. If the gravitational constant is altered, all locations in our “brains” storing the gravitational constant would also be altered.
But even easier, when I make a fundamental change like that in one of my simulations, I normally restart the simulation. Can you tell which iteration you are on? Sure, it’s possible that a change to the constant prevents you from being born. Maybe that’s what happened back in version 6.4. Now that we’re running in version 8.3, you were born. If “they” change something else, we won’t have any knowledge that we ceased to exist.
And that all makes assumptions on how the simulation is running. Elon’s statement about “indistinguishable from reality” is about us creating something that is indistinguishable to us from reality. But perhaps reality for the creators is 6th dimensional, and they haven’t even gotten to that point. We would be unable to distinguish our reality from a simulation anyway.
Then take into account the random procedural games. Perhaps the patch for chocolate was added as an end product to motivate some actor or class of actors within the simulation, or just to provide another economic factor. The random procedural nature of the simulation could have chosen the creation path on it’s own, and back filled all of history for it. Perhaps the simulation hasn’t been running long enough to have covered history far enough back to get to the invention of chocolate. But the simulation engine knows where it can insert the bits of history necessary to show the evolutionary path of chocolate. Any actor inside the simulation that searches for that history in any form finds that computer generate history. If it is even possible for the actor within the simulation to become frustrated at the lack of detail within the simulation, a dev can instruct the generator do generate another couple of pieces to the puzzle.
Once you start down this path, there isn’t really ANYTHING that you can say that would prove we are in a simulation. If we ever find such proof, it’s because a dev either left it there for us to find to watch our reactions, or left it by accident. And if by accident, it may have already happened hundreds of times and has been patched out. A good example is the simulated town in the holodeck in star trek voyager (I don’t remember the episode or town name). The citizens started noticing things they shouldn’t have. Their conclusions were all based on their point of view, and never came close to “we are in a simulation”. And at any point, the crew could have restarted the simulation, but chose not to.