Potential energy depends on where y = 0 is; the change from one point to another never does.
Spotted a mistake on this page? Report it