Add bounds check when doing mapmod on collision layer