Changing MapGridGetMetatileIdAt to output int also reduces number of casts Co-authored-by: Mike-Goutokuji <83477269+mike-goutokuji@users.noreply.github.com>