Fix example mod code for 1.7